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 -x86-asm-syntax=intel -filetype=obj \ | 12 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -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 -x86-asm-syntax=intel -filetype=obj \ | 15 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -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 | 18 ; RUN: %p2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s |
19 ; TODO(kschimpf) Find out why lc2i is needed. | |
20 ; RUN: %lc2i -i %s --insts | %szdiff %s | FileCheck --check-prefix=DUMP %s | |
21 | 19 |
22 @__init_array_start = internal constant [0 x i8] zeroinitializer, align 4 | 20 @__init_array_start = internal constant [0 x i8] zeroinitializer, align 4 |
23 @__fini_array_start = internal constant [0 x i8] zeroinitializer, align 4 | 21 @__fini_array_start = internal constant [0 x i8] zeroinitializer, align 4 |
24 @__tls_template_start = internal constant [0 x i8] zeroinitializer, align 8 | 22 @__tls_template_start = internal constant [0 x i8] zeroinitializer, align 8 |
25 @__tls_template_alignment = internal constant [4 x i8] c"\01\00\00\00", align 4 | 23 @__tls_template_alignment = internal constant [4 x i8] c"\01\00\00\00", align 4 |
26 | 24 |
27 define internal i32 @ignore64BitArg(i64 %a, i32 %b, i64 %c) { | 25 define internal i32 @ignore64BitArg(i64 %a, i32 %b, i64 %c) { |
28 entry: | 26 entry: |
29 ret i32 %b | 27 ret i32 %b |
30 } | 28 } |
(...skipping 1238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1269 ret void | 1267 ret void |
1270 } | 1268 } |
1271 ; The following checks are not strictly necessary since one of the RUN | 1269 ; The following checks are not strictly necessary since one of the RUN |
1272 ; lines actually runs the output through the assembler. | 1270 ; lines actually runs the output through the assembler. |
1273 ; CHECK-LABEL: icmpLt64Imm | 1271 ; CHECK-LABEL: icmpLt64Imm |
1274 ; CHECK-NOT: cmp {{[0-9]+}}, | 1272 ; CHECK-NOT: cmp {{[0-9]+}}, |
1275 ; OPTM1-LABEL: icmpLt64Imm | 1273 ; OPTM1-LABEL: icmpLt64Imm |
1276 ; OPTM1-NOT: cmp {{[0-9]+}}, | 1274 ; OPTM1-NOT: cmp {{[0-9]+}}, |
1277 | 1275 |
1278 ; ERRORS-NOT: ICE translation error | 1276 ; ERRORS-NOT: ICE translation error |
1279 ; DUMP-NOT: SZ | |
OLD | NEW |