| 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: %szdiff --llvm2ice=%llvm2ice %s | FileCheck --check-prefix=DUMP %s | 6 ; RUN: %szdiff --llvm2ice=%llvm2ice %s | FileCheck --check-prefix=DUMP %s |
| 4 | 7 |
| 5 define i32 @Add(i32 %a, i32 %b) { | 8 define i32 @Add(i32 %a, i32 %b) { |
| 6 ; CHECK: define i32 @Add | 9 ; CHECK: define i32 @Add |
| 7 entry: | 10 entry: |
| 8 %add = add i32 %b, %a | 11 %add = add i32 %b, %a |
| 9 ; CHECK: add | 12 ; CHECK: add |
| 10 tail call void @Use(i32 %add) | 13 tail call void @Use(i32 %add) |
| 11 ; CHECK: call Use | 14 ; CHECK: call Use |
| 12 ret i32 %add | 15 ret i32 %add |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 entry: | 104 entry: |
| 102 %rem = urem i32 %a, %b | 105 %rem = urem i32 %a, %b |
| 103 ; CHECK: div | 106 ; CHECK: div |
| 104 tail call void @Use(i32 %rem) | 107 tail call void @Use(i32 %rem) |
| 105 ; CHECK: call Use | 108 ; CHECK: call Use |
| 106 ret i32 %rem | 109 ret i32 %rem |
| 107 } | 110 } |
| 108 | 111 |
| 109 ; ERRORS-NOT: ICE translation error | 112 ; ERRORS-NOT: ICE translation error |
| 110 ; DUMP-NOT: SZ | 113 ; DUMP-NOT: SZ |
| OLD | NEW |