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

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

Issue 456033003: Subzero: Randomize register assignment. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Remove redundancies. Created 6 years, 4 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
« 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.
2
3 ; RUN: %llvm2ice -rng-seed=1 -randomize-regalloc %s \
Jim Stichnoth 2014/08/14 01:10:29 Add an explicit -Om1 option. Also, add the rest o
wala 2014/08/15 03:37:23 Done.
4 ; RUN: | FileCheck %s --check-prefix=OPTM1
5 ; RUN: %llvm2ice -O2 -rng-seed=1 -randomize-regalloc %s \
6 ; RUN: | FileCheck %s --check-prefix=CHECK
7
8 define <4 x i32> @mul_v4i32(<4 x i32> %a, <4 x i32> %b) {
9 entry:
10 %res = mul <4 x i32> %a, %b
11 ret <4 x i32> %res
12 ; OPTM1-LABEL: mul_v4i32:
13 ; OPTM1: sub esp, 48
14 ; OPTM1: movups xmmword ptr [esp+32], xmm0
15 ; OPTM1: movups xmmword ptr [esp+16], xmm1
16 ; OPTM1: movups xmm1, xmmword ptr [esp+32]
17 ; OPTM1: movups xmm6, xmmword ptr [esp+32]
18 ; OPTM1: movups xmm3, xmmword ptr [esp+16]
19 ; OPTM1: pshufd xmm2, xmm6, 49
20 ; OPTM1: pshufd xmm4, xmm3, 49
21 ; OPTM1: pmuludq xmm1, xmm3
22 ; OPTM1: pmuludq xmm2, xmm4
23 ; OPTM1: shufps xmm1, xmm2, 136
24 ; OPTM1: pshufd xmm0, xmm1, 216
25 ; OPTM1: movups xmmword ptr [esp], xmm0
26 ; OPTM1: movups xmm0, xmmword ptr [esp]
27 ; OPTM1: add esp, 48
28 ; OPTM1: ret
29
30 ; CHECK-LABEL: mul_v4i32:
31 ; CHECK: movups xmm5, xmm0
32 ; CHECK: pshufd xmm0, xmm0, 49
33 ; CHECK: pshufd xmm2, xmm1, 49
34 ; CHECK: pmuludq xmm5, xmm1
35 ; CHECK: pmuludq xmm0, xmm2
36 ; CHECK: shufps xmm5, xmm0, 136
37 ; CHECK: pshufd xmm0, xmm5, 216
38 ; CHECK: ret
39 }
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