OLD | NEW |
1 ; This tries to be a comprehensive test of i64 operations, in | 1 ; This tries to be a comprehensive test of i64 operations, in |
2 ; particular the patterns for lowering i64 operations into constituent | 2 ; particular the patterns for lowering i64 operations into constituent |
3 ; i32 operations on x86-32. | 3 ; i32 operations on x86-32. |
4 | 4 |
5 ; TODO(jvoung): fix extra "CALLTARGETS" run. The llvm-objdump symbolizer | 5 ; TODO(jvoung): fix extra "CALLTARGETS" run. The llvm-objdump symbolizer |
6 ; doesn't know how to symbolize non-section-local functions. | 6 ; doesn't know how to symbolize non-section-local functions. |
7 ; The newer LLVM 3.6 one does work, but watch out for other bugs. | 7 ; The newer LLVM 3.6 one does work, but watch out for other bugs. |
8 | 8 |
9 ; RUN: %p2i -i %s --args -O2 --verbose none \ | 9 ; RUN: %p2i -i %s --args -O2 --verbose none \ |
10 ; RUN: | FileCheck --check-prefix=CALLTARGETS %s | 10 ; RUN: | FileCheck --check-prefix=CALLTARGETS %s |
11 ; RUN: %p2i -i %s --args -O2 --verbose none \ | 11 ; RUN: %p2i -i %s --args -O2 --verbose none \ |
12 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ | 12 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ |
13 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s | 13 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s |
14 ; RUN: %p2i -i %s --args -Om1 --verbose none \ | 14 ; RUN: %p2i -i %s --args -Om1 --verbose none \ |
15 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ | 15 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ |
16 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - \ | 16 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - \ |
17 ; RUN: | FileCheck --check-prefix=OPTM1 %s | 17 ; RUN: | FileCheck --check-prefix=OPTM1 %s |
18 ; RUN: %p2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s | |
19 | 18 |
20 @__init_array_start = internal constant [0 x i8] zeroinitializer, align 4 | 19 @__init_array_start = internal constant [0 x i8] zeroinitializer, align 4 |
21 @__fini_array_start = internal constant [0 x i8] zeroinitializer, align 4 | 20 @__fini_array_start = internal constant [0 x i8] zeroinitializer, align 4 |
22 @__tls_template_start = internal constant [0 x i8] zeroinitializer, align 8 | 21 @__tls_template_start = internal constant [0 x i8] zeroinitializer, align 8 |
23 @__tls_template_alignment = internal constant [4 x i8] c"\01\00\00\00", align 4 | 22 @__tls_template_alignment = internal constant [4 x i8] c"\01\00\00\00", align 4 |
24 | 23 |
25 define internal i32 @ignore64BitArg(i64 %a, i32 %b, i64 %c) { | 24 define internal i32 @ignore64BitArg(i64 %a, i32 %b, i64 %c) { |
26 entry: | 25 entry: |
27 ret i32 %b | 26 ret i32 %b |
28 } | 27 } |
(...skipping 1292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1321 | 1320 |
1322 if.end3: ; preds = %if.then2, %if.end | 1321 if.end3: ; preds = %if.then2, %if.end |
1323 ret void | 1322 ret void |
1324 } | 1323 } |
1325 ; The following checks are not strictly necessary since one of the RUN | 1324 ; The following checks are not strictly necessary since one of the RUN |
1326 ; lines actually runs the output through the assembler. | 1325 ; lines actually runs the output through the assembler. |
1327 ; CHECK-LABEL: icmpLt64Imm | 1326 ; CHECK-LABEL: icmpLt64Imm |
1328 ; CHECK-NOT: cmp {{[0-9]+}}, | 1327 ; CHECK-NOT: cmp {{[0-9]+}}, |
1329 ; OPTM1-LABEL: icmpLt64Imm | 1328 ; OPTM1-LABEL: icmpLt64Imm |
1330 ; OPTM1-NOT: cmp {{[0-9]+}}, | 1329 ; OPTM1-NOT: cmp {{[0-9]+}}, |
1331 | |
1332 ; ERRORS-NOT: ICE translation error | |
OLD | NEW |