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

Side by Side Diff: test/NaCl/Bitcode/alloca-operand.ll

Issue 939073008: Rebased PNaCl localmods in LLVM to 223109 (Closed)
Patch Set: undo localmod 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 | « test/NaCl/ARM/vstr-sandboxing1.ll ('k') | test/NaCl/Bitcode/bcanalyzer-width.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 ; RUN: llvm-as < %s | pnacl-freeze | pnacl-bcanalyzer -dump-records \
2 ; RUN: | FileCheck %s
3
4 ; Test that alloca's size operand is represented with a relative value
5 ; ID, the same as other instructions' operands.
6
7 define external void @_start(i32 %arg) {
8 ; CHECK: <FUNCTION_BLOCK
9 ; CHECK: </CONSTANTS_BLOCK>
10
11 %size = mul i32 %arg, 4
12 ; CHECK-NEXT: <INST_BINOP
13 alloca i8, i32 %size
14 ; CHECK-NEXT: <INST_ALLOCA op0=1
15
16 ; Since the operand reference is a relative ID, references to %size
17 ; go up by 1 with each instruction.
18 alloca i8, i32 %size
19 ; CHECK-NEXT: <INST_ALLOCA op0=2
20 alloca i8, i32 %size
21 ; CHECK-NEXT: <INST_ALLOCA op0=3
22
23 ; Reference to a Constant operand.
24 alloca i8, i32 256
25 ; CHECK-NEXT: <INST_ALLOCA op0=5
26
27 ret void
28 ; CHECK-NEXT: <INST_RET/>
29 }
OLDNEW
« no previous file with comments | « test/NaCl/ARM/vstr-sandboxing1.ll ('k') | test/NaCl/Bitcode/bcanalyzer-width.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698