Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(582)

Side by Side Diff: tests_lit/llvm2ice_tests/8bit.pnacl.ll

Issue 955003002: Subzero: Clean up function header emission. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix the tests that were broken as a result Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests_lit/llvm2ice_tests/64bit.pnacl.ll ('k') | tests_lit/llvm2ice_tests/address-mode-opt.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/64bit.pnacl.ll ('k') | tests_lit/llvm2ice_tests/address-mode-opt.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698