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

Side by Side Diff: tests_lit/llvm2ice_tests/alloc.ll

Issue 277033003: Modify pnacl subzero to be able to read pnacl bitcode files. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 6 years, 7 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/arith-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 ; RUIN: %llvm2ice --verbose none %s | FileCheck %s 1 ; RUIN: %llvm2ice --verbose none %s | FileCheck %s
2 ; RUIN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s 2 ; RUIN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s
3 ; RUN: %szdiff --llvm2ice=%llvm2ice %s | FileCheck --check-prefix=DUMP %s 3 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s
4 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \
5 ; RUN: | FileCheck --check-prefix=DUMP %s
4 6
5 define void @fixed_400(i32 %n) { 7 define void @fixed_400(i32 %n) {
6 entry: 8 entry:
7 %array = alloca i8, i32 400, align 16 9 %array = alloca i8, i32 400, align 16
8 %array.asint = ptrtoint i8* %array to i32 10 %__2 = ptrtoint i8* %array to i32
9 call void @f1(i32 %array.asint) 11 call void @f1(i32 %__2)
10 ret void 12 ret void
11 ; CHECK: sub esp, 400 13 ; CHECK: sub esp, 400
12 ; CHECK-NEXT: mov eax, esp 14 ; CHECK-NEXT: mov eax, esp
13 ; CHECK-NEXT: push eax 15 ; CHECK-NEXT: push eax
14 ; CHECK-NEXT: call f1 16 ; CHECK-NEXT: call f1
15 } 17 }
16 18
17 declare void @f1(i32) 19 declare void @f1(i32)
18 20
19 define void @variable_n(i32 %n) { 21 define void @variable_n(i32 %n) {
20 entry: 22 entry:
21 %array = alloca i8, i32 %n, align 16 23 %array = alloca i8, i32 %n, align 16
22 %array.asint = ptrtoint i8* %array to i32 24 %__2 = ptrtoint i8* %array to i32
23 call void @f2(i32 %array.asint) 25 call void @f2(i32 %__2)
24 ret void 26 ret void
25 ; CHECK: mov eax, dword ptr [ebp+8] 27 ; CHECK: mov eax, dword ptr [ebp+8]
26 ; CHECK-NEXT: sub esp, eax 28 ; CHECK-NEXT: sub esp, eax
27 ; CHECK-NEXT: mov eax, esp 29 ; CHECK-NEXT: mov eax, esp
28 ; CHECK-NEXT: push eax 30 ; CHECK-NEXT: push eax
29 ; CHECK-NEXT: call f2 31 ; CHECK-NEXT: call f2
30 } 32 }
31 33
32 declare void @f2(i32) 34 declare void @f2(i32)
33 35
34 ; ERRORS-NOT: ICE translation error 36 ; ERRORS-NOT: ICE translation error
35 ; DUMP-NOT: SZ 37 ; DUMP-NOT: SZ
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/64bit.pnacl.ll ('k') | tests_lit/llvm2ice_tests/arith-opt.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698