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

Side by Side Diff: test/NaCl/Bitcode/null.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/Bitcode/no-structs.ll ('k') | test/NaCl/Bitcode/pnacl-bcdis/alloca.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 ; Test that we no longer generate NULL for numeric constants.
2
3 ; RUN: llvm-as < %s | pnacl-freeze \
4 ; RUN: | pnacl-bcanalyzer -dump-records \
5 ; RUN: | FileCheck %s -check-prefix=PF
6
7 ; RUN: llvm-as < %s | pnacl-freeze | pnacl-thaw \
8 ; RUN: | llvm-dis - | FileCheck %s -check-prefix=TD
9
10 ; ------------------------------------------------------
11
12 define void @TestIntegers() {
13 %1 = and i1 true, false
14 %2 = add i8 1, 0
15 %3 = add i16 1, 0
16 %4 = add i32 1, 0
17 %5 = add i64 1, 0
18 ret void
19 }
20
21 ; TD: define void @TestIntegers() {
22 ; TD-NEXT: %1 = and i1 true, false
23 ; TD-NEXT: %2 = add i8 1, 0
24 ; TD-NEXT: %3 = add i16 1, 0
25 ; TD-NEXT: %4 = add i32 1, 0
26 ; TD-NEXT: %5 = add i64 1, 0
27 ; TD-NEXT: ret void
28 ; TD-NEXT: }
29
30 ; PF: <FUNCTION_BLOCK>
31 ; PF-NEXT: <DECLAREBLOCKS op0=1/>
32 ; PF-NEXT: <CONSTANTS_BLOCK>
33 ; PF-NEXT: <SETTYPE op0=1/>
34 ; PF-NEXT: <INTEGER op0=3/>
35 ; PF-NEXT: <INTEGER op0=0/>
36 ; PF-NEXT: <SETTYPE op0=2/>
37 ; PF-NEXT: <INTEGER op0=2/>
38 ; PF-NEXT: <INTEGER op0=0/>
39 ; PF-NEXT: <SETTYPE op0=3/>
40 ; PF-NEXT: <INTEGER op0=2/>
41 ; PF-NEXT: <INTEGER op0=0/>
42 ; PF-NEXT: <SETTYPE op0=4/>
43 ; PF-NEXT: <INTEGER op0=2/>
44 ; PF-NEXT: <INTEGER op0=0/>
45 ; PF-NEXT: <SETTYPE op0=5/>
46 ; PF-NEXT: <INTEGER op0=2/>
47 ; PF-NEXT: <INTEGER op0=0/>
48 ; PF-NEXT: </CONSTANTS_BLOCK>
49 ; PF-NEXT: <INST_BINOP op0=10 op1=9 op2=10/>
50 ; PF-NEXT: <INST_BINOP op0=9 op1=8 op2=0/>
51 ; PF-NEXT: <INST_BINOP op0=8 op1=7 op2=0/>
52 ; PF-NEXT: <INST_BINOP op0=7 op1=6 op2=0/>
53 ; PF-NEXT: <INST_BINOP op0=6 op1=5 op2=0/>
54 ; PF-NEXT: <INST_RET/>
55 ; PF-NEXT: </FUNCTION_BLOCK>
56
57 define void @TestFloats() {
58 %1 = fadd float 1.0, 0.0
59 %2 = fadd double 1.0, 0.0
60 ret void
61 }
62
63 ; TD: define void @TestFloats() {
64 ; TD-NEXT: %1 = fadd float 1.000000e+00, 0.000000e+00
65 ; TD-NEXT: %2 = fadd double 1.000000e+00, 0.000000e+00
66 ; TD-NEXT: ret void
67 ; TD-NEXT: }
68
69 ; PF: <FUNCTION_BLOCK>
70 ; PF-NEXT: <DECLAREBLOCKS op0=1/>
71 ; PF-NEXT: <CONSTANTS_BLOCK>
72 ; PF-NEXT: <SETTYPE op0=6/>
73 ; PF-NEXT: <FLOAT op0=1065353216/>
74 ; PF-NEXT: <FLOAT op0=0/>
75 ; PF-NEXT: <SETTYPE op0=7/>
76 ; PF-NEXT: <FLOAT op0=4607182418800017408/>
77 ; PF-NEXT: <FLOAT op0=0/>
78 ; PF-NEXT: </CONSTANTS_BLOCK>
79 ; PF-NEXT: <INST_BINOP op0=4 op1=3 op2=0/>
80 ; PF-NEXT: <INST_BINOP op0=3 op1=2 op2=0/>
81 ; PF-NEXT: <INST_RET/>
82 ; PF-NEXT: </FUNCTION_BLOCK>
OLDNEW
« no previous file with comments | « test/NaCl/Bitcode/no-structs.ll ('k') | test/NaCl/Bitcode/pnacl-bcdis/alloca.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698