| 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: %p2i --assemble --disassemble -i %s --args -O2 --verbose none \ | 3 ; RUN: %p2i --filetype=obj --disassemble -i %s --args -O2 | FileCheck %s |
| 4 ; RUN: | FileCheck %s | 4 ; RUN: %p2i --filetype=obj --disassemble -i %s --args -Om1 | FileCheck %s |
| 5 ; RUN: %p2i --assemble --disassemble -i %s --args -Om1 --verbose none \ | |
| 6 ; RUN: | FileCheck %s | |
| 7 | 5 |
| 8 define internal i32 @cast_f2i(float %f) { | 6 define internal i32 @cast_f2i(float %f) { |
| 9 entry: | 7 entry: |
| 10 %v0 = bitcast float %f to i32 | 8 %v0 = bitcast float %f to i32 |
| 11 ret i32 %v0 | 9 ret i32 %v0 |
| 12 } | 10 } |
| 13 ; CHECK-LABEL: cast_f2i | 11 ; CHECK-LABEL: cast_f2i |
| 14 ; CHECK: mov eax | 12 ; CHECK: mov eax |
| 15 ; CHECK: ret | 13 ; CHECK: ret |
| 16 | 14 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 define internal double @cast_ll2d_const() { | 52 define internal double @cast_ll2d_const() { |
| 55 entry: | 53 entry: |
| 56 %v0 = bitcast i64 12345678901234 to double | 54 %v0 = bitcast i64 12345678901234 to double |
| 57 ret double %v0 | 55 ret double %v0 |
| 58 } | 56 } |
| 59 ; CHECK-LABEL: cast_ll2d_const | 57 ; CHECK-LABEL: cast_ll2d_const |
| 60 ; CHECK: mov {{.*}},0x73ce2ff2 | 58 ; CHECK: mov {{.*}},0x73ce2ff2 |
| 61 ; CHECK: mov {{.*}},0xb3a | 59 ; CHECK: mov {{.*}},0xb3a |
| 62 ; CHECK: fld QWORD PTR | 60 ; CHECK: fld QWORD PTR |
| 63 ; CHECK: ret | 61 ; CHECK: ret |
| OLD | NEW |