| OLD | NEW |
| 1 ; RUIN: %llvm2ice -verbose inst %s | FileCheck %s | 1 ; Trivial smoke test of bitcast between integer and FP types. |
| 2 ; RUIN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s | 2 |
| 3 ; RUN: %llvm2ice --verbose inst %s | FileCheck %s |
| 4 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s |
| 3 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s | 5 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s |
| 4 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \ | 6 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \ |
| 5 ; RUN: | FileCheck --check-prefix=DUMP %s | 7 ; RUN: | FileCheck --check-prefix=DUMP %s |
| 6 | 8 |
| 7 define internal i32 @cast_f2i(float %f) { | 9 define internal i32 @cast_f2i(float %f) { |
| 8 entry: | 10 entry: |
| 9 %v0 = bitcast float %f to i32 | 11 %v0 = bitcast float %f to i32 |
| 12 ; CHECK: bitcast |
| 10 ret i32 %v0 | 13 ret i32 %v0 |
| 11 } | 14 } |
| 12 | 15 |
| 13 define internal float @cast_i2f(i32 %i) { | 16 define internal float @cast_i2f(i32 %i) { |
| 14 entry: | 17 entry: |
| 15 %v0 = bitcast i32 %i to float | 18 %v0 = bitcast i32 %i to float |
| 19 ; CHECK: bitcast |
| 16 ret float %v0 | 20 ret float %v0 |
| 17 } | 21 } |
| 18 | 22 |
| 19 define internal i64 @cast_d2ll(double %d) { | 23 define internal i64 @cast_d2ll(double %d) { |
| 20 entry: | 24 entry: |
| 21 %v0 = bitcast double %d to i64 | 25 %v0 = bitcast double %d to i64 |
| 26 ; CHECK: bitcast |
| 22 ret i64 %v0 | 27 ret i64 %v0 |
| 23 } | 28 } |
| 24 | 29 |
| 25 define internal double @cast_ll2d(i64 %ll) { | 30 define internal double @cast_ll2d(i64 %ll) { |
| 26 entry: | 31 entry: |
| 27 %v0 = bitcast i64 %ll to double | 32 %v0 = bitcast i64 %ll to double |
| 33 ; CHECK: bitcast |
| 28 ret double %v0 | 34 ret double %v0 |
| 29 } | 35 } |
| 30 | 36 |
| 31 ; ERRORS-NOT: ICE translation error | 37 ; ERRORS-NOT: ICE translation error |
| 32 ; DUMP-NOT: SZ | 38 ; DUMP-NOT: SZ |
| OLD | NEW |