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: %p2i -i %s --args -O2 --verbose none \ | 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: %p2i -i %s --args -O2 --verbose none \ | 12 ; RUN: %p2i -i %s --args -O2 --verbose none \ |
13 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ | 13 ; RUN: | llvm-mc -triple=i686-none-nacl -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: %p2i -i %s --args -Om1 --verbose none \ | 15 ; RUN: %p2i -i %s --args -Om1 --verbose none \ |
16 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ | 16 ; RUN: | llvm-mc -triple=i686-none-nacl -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: %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 @doubleArgs(double %a, i32 %b, double %c) { | 24 define internal i32 @doubleArgs(double %a, i32 %b, double %c) { |
26 entry: | 25 entry: |
27 ret i32 %b | 26 ret i32 %b |
28 } | 27 } |
(...skipping 1196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1225 define internal double @selectDoubleVarVar(double %a, double %b) { | 1224 define internal double @selectDoubleVarVar(double %a, double %b) { |
1226 entry: | 1225 entry: |
1227 %cmp = fcmp olt double %a, %b | 1226 %cmp = fcmp olt double %a, %b |
1228 %cond = select i1 %cmp, double %a, double %b | 1227 %cond = select i1 %cmp, double %a, double %b |
1229 ret double %cond | 1228 ret double %cond |
1230 } | 1229 } |
1231 ; CHECK-LABEL: selectDoubleVarVar | 1230 ; CHECK-LABEL: selectDoubleVarVar |
1232 ; CHECK: ucomisd | 1231 ; CHECK: ucomisd |
1233 ; CHECK: ja {{[0-9]}} | 1232 ; CHECK: ja {{[0-9]}} |
1234 ; CHECK: fld | 1233 ; CHECK: fld |
1235 | |
1236 ; ERRORS-NOT: ICE translation error | |
OLD | NEW |