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

Side by Side Diff: tests_lit/llvm2ice_tests/alloc.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, 9 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/align-spill-locations.ll ('k') | tests_lit/llvm2ice_tests/bitcast.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 is a basic test of the alloca instruction. 1 ; This is a basic test of the alloca instruction.
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 void @fixed_416_align_16(i32 %n) { 6 define void @fixed_416_align_16(i32 %n) {
9 entry: 7 entry:
10 %array = alloca i8, i32 416, align 16 8 %array = alloca i8, i32 416, align 16
11 %__2 = ptrtoint i8* %array to i32 9 %__2 = ptrtoint i8* %array to i32
12 call void @f1(i32 %__2) 10 call void @f1(i32 %__2)
13 ret void 11 ret void
14 } 12 }
15 ; CHECK-LABEL: fixed_416_align_16 13 ; CHECK-LABEL: fixed_416_align_16
16 ; CHECK: sub esp,0x1a0 14 ; CHECK: sub esp,0x1a0
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 %__2 = ptrtoint i8* %array to i32 100 %__2 = ptrtoint i8* %array to i32
103 call void @f2(i32 %__2) 101 call void @f2(i32 %__2)
104 ret void 102 ret void
105 } 103 }
106 ; CHECK-LABEL: align0 104 ; CHECK-LABEL: align0
107 ; CHECK: add [[REG:.*]],0xf 105 ; CHECK: add [[REG:.*]],0xf
108 ; CHECK: and [[REG]],0xfffffff0 106 ; CHECK: and [[REG]],0xfffffff0
109 ; CHECK: sub esp,[[REG]] 107 ; CHECK: sub esp,[[REG]]
110 108
111 declare void @f2(i32 %ignored) 109 declare void @f2(i32 %ignored)
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/align-spill-locations.ll ('k') | tests_lit/llvm2ice_tests/bitcast.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698