| OLD | NEW |
| 1 ; RUIN: %llvm2ice -verbose inst %s | FileCheck %s | 1 ; This is a very early test that just checks the representation of i32 |
| 2 ; RUIN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s | 2 ; arithmetic instructions. No assembly tests are done. |
| 3 |
| 4 ; RUN: %llvm2ice --verbose inst %s | FileCheck %s |
| 5 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s |
| 3 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s | 6 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s |
| 4 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \ | 7 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \ |
| 5 ; RUN: | FileCheck --check-prefix=DUMP %s | 8 ; RUN: | FileCheck --check-prefix=DUMP %s |
| 6 | 9 |
| 7 define i32 @Add(i32 %a, i32 %b) { | 10 define i32 @Add(i32 %a, i32 %b) { |
| 8 ; CHECK: define i32 @Add | 11 ; CHECK: define i32 @Add |
| 9 entry: | 12 entry: |
| 10 %add = add i32 %b, %a | 13 %add = add i32 %b, %a |
| 11 ; CHECK: add | 14 ; CHECK: add |
| 12 tail call void @Use(i32 %add) | 15 tail call void @Use(i32 %add) |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 entry: | 106 entry: |
| 104 %rem = urem i32 %a, %b | 107 %rem = urem i32 %a, %b |
| 105 ; CHECK: div | 108 ; CHECK: div |
| 106 tail call void @Use(i32 %rem) | 109 tail call void @Use(i32 %rem) |
| 107 ; CHECK: call Use | 110 ; CHECK: call Use |
| 108 ret i32 %rem | 111 ret i32 %rem |
| 109 } | 112 } |
| 110 | 113 |
| 111 ; ERRORS-NOT: ICE translation error | 114 ; ERRORS-NOT: ICE translation error |
| 112 ; DUMP-NOT: SZ | 115 ; DUMP-NOT: SZ |
| OLD | NEW |