OLD | NEW |
1 ; Trivial smoke test of bitcast between integer and FP types. | 1 ; Trivial smoke test of bitcast between integer and FP types. |
2 | 2 |
3 ; RUN: %llvm2ice -O2 --verbose none %s \ | 3 ; RUN: %p2i -i %s --args -O2 --verbose none \ |
4 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ | 4 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ |
5 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s | 5 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s |
6 ; RUN: %llvm2ice -Om1 --verbose none %s \ | 6 ; RUN: %p2i -i %s --args -Om1 --verbose none \ |
7 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ | 7 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ |
8 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s | 8 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s |
9 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s | 9 ; RUN: %p2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s |
10 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s | 10 ; RUN: %p2i -i %s --insts | %szdiff %s | FileCheck --check-prefix=DUMP %s |
11 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \ | |
12 ; RUN: | FileCheck --check-prefix=DUMP %s | |
13 | 11 |
14 define internal i32 @cast_f2i(float %f) { | 12 define internal i32 @cast_f2i(float %f) { |
15 entry: | 13 entry: |
16 %v0 = bitcast float %f to i32 | 14 %v0 = bitcast float %f to i32 |
17 ret i32 %v0 | 15 ret i32 %v0 |
18 } | 16 } |
19 ; CHECK-LABEL: cast_f2i | 17 ; CHECK-LABEL: cast_f2i |
20 ; CHECK: mov eax | 18 ; CHECK: mov eax |
21 ; CHECK: ret | 19 ; CHECK: ret |
22 | 20 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 ret double %v0 | 61 ret double %v0 |
64 } | 62 } |
65 ; CHECK-LABEL: cast_ll2d_const | 63 ; CHECK-LABEL: cast_ll2d_const |
66 ; CHECK: mov {{.*}}, 1942892530 | 64 ; CHECK: mov {{.*}}, 1942892530 |
67 ; CHECK: mov {{.*}}, 2874 | 65 ; CHECK: mov {{.*}}, 2874 |
68 ; CHECK: fld qword ptr | 66 ; CHECK: fld qword ptr |
69 ; CHECK: ret | 67 ; CHECK: ret |
70 | 68 |
71 ; ERRORS-NOT: ICE translation error | 69 ; ERRORS-NOT: ICE translation error |
72 ; DUMP-NOT: SZ | 70 ; DUMP-NOT: SZ |
OLD | NEW |