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

Side by Side Diff: tests_lit/llvm2ice_tests/randomize-regalloc.ll

Issue 807293003: Subzero: Randomize register assignment. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Simply; fix a bug; add the lit test Created 6 years 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
« src/IceTargetLoweringX8632.cpp ('K') | « src/llvm2ice.cpp ('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
(Empty)
1 ; This is a smoke test of randomized register allocation. The output
2 ; of this test will change with changes to the random number generator
3 ; implementation.
4
5 ; RUN: %p2i -i %s --args -O2 -sz-seed=1 -randomize-regalloc \
6 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \
7 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - \
8 ; RUN: | FileCheck %s --check-prefix=CHECK
9 ; RUN: %p2i -i %s --args -Om1 -sz-seed=1 -randomize-regalloc \
10 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \
11 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - \
12 ; RUN: | FileCheck %s --check-prefix=OPTM1
JF 2014/12/17 18:56:19 Also test with another seed that 1.
Jim Stichnoth 2014/12/18 18:52:03 Done.
13
14 define <4 x i32> @mul_v4i32(<4 x i32> %a, <4 x i32> %b) {
15 entry:
16 %res = mul <4 x i32> %a, %b
17 ret <4 x i32> %res
18 ; OPTM1-LABEL: mul_v4i32:
19 ; OPTM1: sub esp, 60
20 ; OPTM1-NEXT: movups xmmword ptr [esp + 32], xmm0
21 ; OPTM1-NEXT: movups xmmword ptr [esp + 16], xmm1
22 ; OPTM1-NEXT: movups xmm0, xmmword ptr [esp + 32]
23 ; OPTM1-NEXT: pshufd xmm7, xmmword ptr [esp + 32], 49
24 ; OPTM1-NEXT: pshufd xmm4, xmmword ptr [esp + 16], 49
25 ; OPTM1-NEXT: pmuludq xmm0, xmmword ptr [esp + 16]
26 ; OPTM1-NEXT: pmuludq xmm7, xmm4
27 ; OPTM1-NEXT: shufps xmm0, xmm7, -120
28 ; OPTM1-NEXT: pshufd xmm0, xmm0, -40
29 ; OPTM1-NEXT: movups xmmword ptr [esp], xmm0
30 ; OPTM1-NEXT: movups xmm0, xmmword ptr [esp]
31 ; OPTM1-NEXT: add esp, 60
32 ; OPTM1-NEXT: ret
33
34 ; CHECK-LABEL: mul_v4i32:
35 ; CHECK: movups xmm6, xmm0
36 ; CHECK-NEXT: pshufd xmm0, xmm0, 49
37 ; CHECK-NEXT: pshufd xmm5, xmm1, 49
38 ; CHECK-NEXT: pmuludq xmm6, xmm1
39 ; CHECK-NEXT: pmuludq xmm0, xmm5
40 ; CHECK-NEXT: shufps xmm6, xmm0, -120
41 ; CHECK-NEXT: pshufd xmm6, xmm6, -40
42 ; CHECK-NEXT: movups xmm0, xmm6
43 ; CHECK-NEXT: ret
44 }
45
46 ; ERRORS-NOT: ICE translation error
47 ; DUMP-NOT: SZ
OLDNEW
« src/IceTargetLoweringX8632.cpp ('K') | « src/llvm2ice.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698