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

Side by Side Diff: tests_lit/llvm2ice_tests/struct-arith.pnacl.ll

Issue 927433002: Convert a few lit tests that use "lc2i | llvm-mc | llvm-objdump" to use p2i. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: comment 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/phi.ll ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ; This test is lowered from C code that does some simple aritmetic 1 ; This test is lowered from C code that does some simple aritmetic
2 ; with struct members. 2 ; with struct members.
3 3
4 ; TODO(kschimpf) Find out why lc2i is needed. 4 ; REQUIRES: allow_dump
5 ; REQUIRES: allow_llvm_ir_as_input 5 ; RUN: %p2i -i %s --args --verbose inst -threads=0 | FileCheck %s
6 ; RUN: %lc2i -i %s --args --verbose inst -threads=0 | FileCheck %s
7 6
8 define internal i32 @compute_important_function(i32 %v1, i32 %v2) { 7 define internal i32 @compute_important_function(i32 %v1, i32 %v2) {
9 entry: 8 entry:
10 %__2 = inttoptr i32 %v1 to i32* 9 %__2 = inttoptr i32 %v1 to i32*
11 %_v0 = load i32* %__2, align 1 10 %_v0 = load i32* %__2, align 1
12 11
13 ; CHECK: entry: 12 ; CHECK: entry:
14 ; CHECK-NEXT: %__2 = i32 %v1
15 ; CHECK-NEXT: %_v0 = load i32* {{.*}}, align 1 13 ; CHECK-NEXT: %_v0 = load i32* {{.*}}, align 1
16 14
17 %__4 = inttoptr i32 %v2 to i32* 15 %__4 = inttoptr i32 %v2 to i32*
18 %_v1 = load i32* %__4, align 1 16 %_v1 = load i32* %__4, align 1
19 %gep = add i32 %v2, 12 17 %gep = add i32 %v2, 12
20 %__7 = inttoptr i32 %gep to i32* 18 %__7 = inttoptr i32 %gep to i32*
21 %_v2 = load i32* %__7, align 1 19 %_v2 = load i32* %__7, align 1
22 %mul = mul i32 %_v2, %_v1 20 %mul = mul i32 %_v2, %_v1
23 %gep6 = add i32 %v1, 4 21 %gep6 = add i32 %v1, 4
24 %__11 = inttoptr i32 %gep6 to i32* 22 %__11 = inttoptr i32 %gep6 to i32*
(...skipping 16 matching lines...) Expand all
41 %mul11 = mul i32 %mul9, %_v7 39 %mul11 = mul i32 %mul9, %_v7
42 %add4.neg = add i32 %mul, %_v0 40 %add4.neg = add i32 %mul, %_v0
43 %add = sub i32 %add4.neg, %_v3 41 %add = sub i32 %add4.neg, %_v3
44 %sub = sub i32 %add, %mul3 42 %sub = sub i32 %add, %mul3
45 %sub12 = sub i32 %sub, %mul11 43 %sub12 = sub i32 %sub, %mul11
46 ret i32 %sub12 44 ret i32 %sub12
47 45
48 ; CHECK: %sub12 = sub i32 %sub, %mul11 46 ; CHECK: %sub12 = sub i32 %sub, %mul11
49 ; CHECK-NEXT: ret i32 %sub12 47 ; CHECK-NEXT: ret i32 %sub12
50 } 48 }
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/phi.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698