OLD | NEW |
1 ; This tries to be a comprehensive test of f32 and f64 operations. | 1 ; This tries to be a comprehensive test of f32 and f64 operations. |
2 ; The CHECK lines are only checking for basic instruction patterns | 2 ; The CHECK lines are only checking for basic instruction patterns |
3 ; that should be present regardless of the optimization level, so | 3 ; that should be present regardless of the optimization level, so |
4 ; there are no special OPTM1 match lines. | 4 ; there are no special OPTM1 match lines. |
5 | 5 |
6 ; TODO(jvoung): fix extra "CALLTARGETS" run. The llvm-objdump symbolizer | 6 ; TODO(jvoung): fix extra "CALLTARGETS" run. The llvm-objdump symbolizer |
7 ; doesn't know how to symbolize non-section-local functions. | 7 ; doesn't know how to symbolize non-section-local functions. |
8 ; The newer LLVM 3.6 one does work, but watch out for other bugs. | 8 ; The newer LLVM 3.6 one does work, but watch out for other bugs. |
9 | 9 |
10 ; RUN: %llvm2ice -O2 --verbose none %s \ | 10 ; RUN: %p2i -i %s --args -O2 --verbose none \ |
11 ; RUN: | FileCheck --check-prefix=CALLTARGETS %s | 11 ; RUN: | FileCheck --check-prefix=CALLTARGETS %s |
12 ; RUN: %llvm2ice -O2 --verbose none %s \ | 12 ; RUN: %p2i -i %s --args -O2 --verbose none \ |
13 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ | 13 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ |
14 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s | 14 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s |
15 ; RUN: %llvm2ice -Om1 --verbose none %s \ | 15 ; RUN: %p2i -i %s --args -Om1 --verbose none \ |
16 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ | 16 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ |
17 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s | 17 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s |
18 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s | 18 ; RUN: %p2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s |
19 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s | 19 ; TODO(kschimpf) Find out why lc2i is needed. |
20 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \ | 20 ; RUN: %lc2i -i %s --insts | %szdiff %s | FileCheck --check-prefix=DUMP %s |
21 ; RUN: | FileCheck --check-prefix=DUMP %s | |
22 | 21 |
23 @__init_array_start = internal constant [0 x i8] zeroinitializer, align 4 | 22 @__init_array_start = internal constant [0 x i8] zeroinitializer, align 4 |
24 @__fini_array_start = internal constant [0 x i8] zeroinitializer, align 4 | 23 @__fini_array_start = internal constant [0 x i8] zeroinitializer, align 4 |
25 @__tls_template_start = internal constant [0 x i8] zeroinitializer, align 8 | 24 @__tls_template_start = internal constant [0 x i8] zeroinitializer, align 8 |
26 @__tls_template_alignment = internal constant [4 x i8] c"\01\00\00\00", align 4 | 25 @__tls_template_alignment = internal constant [4 x i8] c"\01\00\00\00", align 4 |
27 | 26 |
28 define internal i32 @doubleArgs(double %a, i32 %b, double %c) { | 27 define internal i32 @doubleArgs(double %a, i32 %b, double %c) { |
29 entry: | 28 entry: |
30 ret i32 %b | 29 ret i32 %b |
31 } | 30 } |
(...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1173 %cond = select i1 %cmp, double %a, double %b | 1172 %cond = select i1 %cmp, double %a, double %b |
1174 ret double %cond | 1173 ret double %cond |
1175 } | 1174 } |
1176 ; CHECK-LABEL: selectDoubleVarVar | 1175 ; CHECK-LABEL: selectDoubleVarVar |
1177 ; CHECK: ucomisd | 1176 ; CHECK: ucomisd |
1178 ; CHECK: ja {{[0-9]}} | 1177 ; CHECK: ja {{[0-9]}} |
1179 ; CHECK: fld | 1178 ; CHECK: fld |
1180 | 1179 |
1181 ; ERRORS-NOT: ICE translation error | 1180 ; ERRORS-NOT: ICE translation error |
1182 ; DUMP-NOT: SZ | 1181 ; DUMP-NOT: SZ |
OLD | NEW |