| OLD | NEW |
| 1 ; This tries to be a comprehensive test of i8 operations. | 1 ; This tries to be a comprehensive test of i8 operations. |
| 2 | 2 |
| 3 ; RUN: %p2i --assemble --disassemble -i %s --args -O2 --verbose none \ | 3 ; RUN: %p2i --filetype=obj --disassemble -i %s --args -O2 | FileCheck %s |
| 4 ; RUN: | FileCheck %s | 4 ; RUN: %p2i --filetype=obj --disassemble -i %s --args -Om1 | FileCheck %s |
| 5 ; RUN: %p2i --assemble --disassemble -i %s --args -Om1 --verbose none \ | |
| 6 ; RUN: | FileCheck %s | |
| 7 | 5 |
| 8 define internal i32 @add8Bit(i32 %a, i32 %b) { | 6 define internal i32 @add8Bit(i32 %a, i32 %b) { |
| 9 entry: | 7 entry: |
| 10 %a_8 = trunc i32 %a to i8 | 8 %a_8 = trunc i32 %a to i8 |
| 11 %b_8 = trunc i32 %b to i8 | 9 %b_8 = trunc i32 %b to i8 |
| 12 %add = add i8 %b_8, %a_8 | 10 %add = add i8 %b_8, %a_8 |
| 13 %ret = zext i8 %add to i32 | 11 %ret = zext i8 %add to i32 |
| 14 ret i32 %ret | 12 ret i32 %ret |
| 15 } | 13 } |
| 16 ; CHECK-LABEL: add8Bit | 14 ; CHECK-LABEL: add8Bit |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 ; CHECK: mov BYTE PTR {{.*}},{{[a-d]l}} | 357 ; CHECK: mov BYTE PTR {{.*}},{{[a-d]l}} |
| 360 | 358 |
| 361 define void @store_i8_const(i32 %addr_arg) { | 359 define void @store_i8_const(i32 %addr_arg) { |
| 362 entry: | 360 entry: |
| 363 %addr = inttoptr i32 %addr_arg to i8* | 361 %addr = inttoptr i32 %addr_arg to i8* |
| 364 store i8 123, i8* %addr, align 1 | 362 store i8 123, i8* %addr, align 1 |
| 365 ret void | 363 ret void |
| 366 } | 364 } |
| 367 ; CHECK-LABEL: store_i8_const | 365 ; CHECK-LABEL: store_i8_const |
| 368 ; CHECK: mov BYTE PTR {{.*}},0x7b | 366 ; CHECK: mov BYTE PTR {{.*}},0x7b |
| OLD | NEW |