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

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

Issue 1427973003: Subzero: Refactor x86 register representation to actively use aliases. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Reformat Created 5 years, 1 month 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/randomize-regalloc.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 is a smoke test of random number generator. 1 ; This is a smoke test of random number generator.
2 ; The random number generators for different randomization passes should be 2 ; The random number generators for different randomization passes should be
3 ; decoupled. The random number used in one randomization pass should not be 3 ; decoupled. The random number used in one randomization pass should not be
4 ; influenced by the existence of other randomization passes. 4 ; influenced by the existence of other randomization passes.
5 5
6 ; REQUIRES: allow_dump, target_X8632 6 ; REQUIRES: allow_dump, target_X8632
7 7
8 ; Command for checking constant blinding (Need to turn off nop-insertion) 8 ; Command for checking constant blinding (Need to turn off nop-insertion)
9 ; RUN: %p2i --target x8632 -i %s --filetype=obj --disassemble --args -O2 \ 9 ; RUN: %p2i --target x8632 -i %s --filetype=obj --disassemble --args -O2 \
10 ; RUN: -sz-seed=1 -randomize-pool-immediates=randomize \ 10 ; RUN: -sz-seed=1 -randomize-pool-immediates=randomize \
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 %retval.0 = phi float [ %rbb, %sw.bb ], [ %rbb1, %sw.bb1 ], [ %rbb2, %sw.bb2 ] , [ %rbb3, %sw.bb3 ], [ %rbb4, %sw.bb4], [ 0.000000e+00, %entry ] 182 %retval.0 = phi float [ %rbb, %sw.bb ], [ %rbb1, %sw.bb1 ], [ %rbb2, %sw.bb2 ] , [ %rbb3, %sw.bb3 ], [ %rbb4, %sw.bb4], [ 0.000000e+00, %entry ]
183 ret float %retval.0 183 ret float %retval.0
184 } 184 }
185 185
186 define internal <4 x i32> @func4(<4 x i32> %a, <4 x i32> %b) { 186 define internal <4 x i32> @func4(<4 x i32> %a, <4 x i32> %b) {
187 entry: 187 entry:
188 %res = mul <4 x i32> %a, %b 188 %res = mul <4 x i32> %a, %b
189 ret <4 x i32> %res 189 ret <4 x i32> %res
190 190
191 ; REGALLOC-LABEL: func4 191 ; REGALLOC-LABEL: func4
192 ; REGALLOC: movups xmm5,xmm0 192 ; REGALLOC: movups xmm3,xmm0
193 ; REGALLOC-NEXT: pshufd xmm0,xmm0,0x31 193 ; REGALLOC-NEXT: pshufd xmm0,xmm0,0x31
194 ; REGALLOC-NEXT: pshufd xmm4,xmm1,0x31 194 ; REGALLOC-NEXT: pshufd xmm4,xmm1,0x31
195 ; REGALLOC-NEXT: pmuludq xmm5,xmm1 195 ; REGALLOC-NEXT: pmuludq xmm3,xmm1
196 ; REGALLOC-NEXT: pmuludq xmm0,xmm4 196 ; REGALLOC-NEXT: pmuludq xmm0,xmm4
197 ; REGALLOC-NEXT: shufps xmm5,xmm0,0x88 197 ; REGALLOC-NEXT: shufps xmm3,xmm0,0x88
198 ; REGALLOC-NEXT: pshufd xmm5,xmm5,0xd8 198 ; REGALLOC-NEXT: pshufd xmm3,xmm3,0xd8
199 ; REGALLOC-NEXT: movups xmm0,xmm5 199 ; REGALLOC-NEXT: movups xmm0,xmm3
200 ; REGALLOC-NEXT: ret 200 ; REGALLOC-NEXT: ret
201 } 201 }
202 202
203 define internal void @func5(i32 %foo, i32 %bar) { 203 define internal void @func5(i32 %foo, i32 %bar) {
204 entry: 204 entry:
205 %r1 = icmp eq i32 %foo, %bar 205 %r1 = icmp eq i32 %foo, %bar
206 br i1 %r1, label %BB1, label %BB2 206 br i1 %r1, label %BB1, label %BB2
207 BB1: 207 BB1:
208 %r2 = icmp sgt i32 %foo, %bar 208 %r2 = icmp sgt i32 %foo, %bar
209 br i1 %r2, label %BB3, label %BB4 209 br i1 %r2, label %BB3, label %BB4
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 ; GLOBALVARS-LABEL: ArrayUninit 249 ; GLOBALVARS-LABEL: ArrayUninit
250 ; GLOBALVARS-LABEL: PrimitiveInitStatic 250 ; GLOBALVARS-LABEL: PrimitiveInitStatic
251 ; GLOBALVARS-LABEL: ArrayUninitConstDouble 251 ; GLOBALVARS-LABEL: ArrayUninitConstDouble
252 ; GLOBALVARS-LABEL: ArrayUninitConstInt 252 ; GLOBALVARS-LABEL: ArrayUninitConstInt
253 ; GLOBALVARS-LABEL: PrimitiveInitConst 253 ; GLOBALVARS-LABEL: PrimitiveInitConst
254 254
255 ; Check for pooled constant reordering 255 ; Check for pooled constant reordering
256 ; POOLEDCONSTANTS-LABEL: .rodata.cst4 256 ; POOLEDCONSTANTS-LABEL: .rodata.cst4
257 ; POOLEDCONSTANTS: 0000803e 0000803f 00000000 0000003f 257 ; POOLEDCONSTANTS: 0000803e 0000803f 00000000 0000003f
258 ; POOLEDCONSTANTS: 00008040 00000040 258 ; POOLEDCONSTANTS: 00008040 00000040
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/randomize-regalloc.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698