| OLD | NEW |
| 1 ; This is a very early test that just checks the representation of i32 | 1 ; This is a very early test that just checks the representation of i32 |
| 2 ; arithmetic instructions. No assembly tests are done. | 2 ; arithmetic instructions. No assembly tests are done. |
| 3 | 3 |
| 4 ; REQUIRES: allow_dump | 4 ; REQUIRES: allow_dump |
| 5 | 5 |
| 6 ; RUN: %p2i -i %s --filetype=asm --args --verbose inst -threads=0 | FileCheck %s | 6 ; RUN: %p2i -i %s --filetype=asm --args --verbose inst -threads=0 | FileCheck %s |
| 7 | 7 |
| 8 ; TODO(jvoung): Enable test when it does not llvm::report_fatal_error. |
| 9 ; The test runner wrappers don't handle error expected errors |
| 10 ; so we can't just "not" the command. |
| 11 ; RUIN: %if --need=target_ARM32 --command %p2i -i %s --filetype=asm \ |
| 12 ; RUIN: --args --verbose inst -threads=0 --target arm32 \ |
| 13 ; RUIN: | %if --need=target_ARM32 --command FileCheck %s --check-prefix ARM32 |
| 14 |
| 8 define i32 @Add(i32 %a, i32 %b) { | 15 define i32 @Add(i32 %a, i32 %b) { |
| 9 ; CHECK: define i32 @Add | 16 ; CHECK: define i32 @Add |
| 10 entry: | 17 entry: |
| 11 %add = add i32 %b, %a | 18 %add = add i32 %b, %a |
| 12 ; CHECK: add | 19 ; CHECK: add |
| 13 tail call void @Use(i32 %add) | 20 tail call void @Use(i32 %add) |
| 14 ; CHECK: call Use | 21 ; CHECK: call Use |
| 15 ret i32 %add | 22 ret i32 %add |
| 16 } | 23 } |
| 17 | 24 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 | 118 |
| 112 ; Check for a valid addressing mode in the x86-32 mul instruction when | 119 ; Check for a valid addressing mode in the x86-32 mul instruction when |
| 113 ; the second source operand is an immediate. | 120 ; the second source operand is an immediate. |
| 114 define i64 @MulImm() { | 121 define i64 @MulImm() { |
| 115 entry: | 122 entry: |
| 116 %mul = mul i64 3, 4 | 123 %mul = mul i64 3, 4 |
| 117 ret i64 %mul | 124 ret i64 %mul |
| 118 } | 125 } |
| 119 ; CHECK-LABEL: MulImm | 126 ; CHECK-LABEL: MulImm |
| 120 ; CHECK-NOT: mul {{[0-9]+}} | 127 ; CHECK-NOT: mul {{[0-9]+}} |
| OLD | NEW |