| OLD | NEW |
| 1 ; RUIN: %llvm2ice -verbose inst %s | FileCheck %s | 1 ; Simple test of the inttoptr instruction. This is not part of the |
| 2 ; RUIN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s | 2 ; PNaCl bitcode, but llvm2ice accepts it anyway and turns it into an |
| 3 ; assignment instruction. |
| 4 |
| 5 ; RUN: %llvm2ice --verbose inst %s | FileCheck %s |
| 6 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s |
| 3 ; RUN: %szdiff --llvm2ice=%llvm2ice %s | FileCheck --check-prefix=DUMP %s | 7 ; RUN: %szdiff --llvm2ice=%llvm2ice %s | FileCheck --check-prefix=DUMP %s |
| 4 | 8 |
| 5 define void @dummy_inttoptr(i32 %addr_arg) { | 9 define void @dummy_inttoptr(i32 %addr_arg) { |
| 6 entry: | 10 entry: |
| 7 %ptr = inttoptr i32 %addr_arg to i32* | 11 %ptr = inttoptr i32 %addr_arg to i32* |
| 8 ret void | 12 ret void |
| 9 ; CHECK: %ptr = i32 %addr_arg | 13 ; CHECK: %ptr = i32 %addr_arg |
| 10 } | 14 } |
| 11 | 15 |
| 12 ; ERRORS-NOT: ICE translation error | 16 ; ERRORS-NOT: ICE translation error |
| 13 ; DUMP-NOT: SZ | 17 ; DUMP-NOT: SZ |
| OLD | NEW |