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/nop-insertion.ll

Issue 463563006: Subzero: Randomly insert nops. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Remove redundancy and fix formatting. 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
OLDNEW
(Empty)
1 ; This is a smoke test of nop insertion.
2
3 ; RUN: %llvm2ice -rng-seed=1 -insert-nops -nop-probability=50 %s | FileCheck %s
jvoung (off chromium) 2014/08/14 15:17:17 maybe test at 90% also, to test that the nop-proba
wala 2014/08/14 23:29:50 Done.
4
5 define <4 x i32> @mul_v4i32(<4 x i32> %a, <4 x i32> %b) {
6 entry:
7 %res = mul <4 x i32> %a, %b
8 ret <4 x i32> %res
9 ; CHECK-LABEL: mul_v4i32:
10 ; CHECK: sub esp, 48
11 ; CHECK: nop # length = 8 bytes
12 ; CHECK: movups xmmword ptr [esp+32], xmm0
13 ; CHECK: movups xmmword ptr [esp+16], xmm1
14 ; CHECK: nop # length = 5 bytes
15 ; CHECK: movups xmm2, xmmword ptr [esp+32]
16 ; CHECK: nop # length = 7 bytes
17 ; CHECK: movups xmm0, xmmword ptr [esp+32]
18 ; CHECK: movups xmm1, xmmword ptr [esp+16]
19 ; CHECK: pshufd xmm3, xmm0, 49
20 ; CHECK: pshufd xmm4, xmm1, 49
21 ; CHECK: nop # length = 9 bytes
22 ; CHECK: pmuludq xmm2, xmm1
23 ; CHECK: pmuludq xmm3, xmm4
24 ; CHECK: nop # length = 1 byte
25 ; CHECK: shufps xmm2, xmm3, 136
26 ; CHECK: pshufd xmm5, xmm2, 216
27 ; CHECK: movups xmmword ptr [esp], xmm5
28 ; CHECK: nop # length = 8 bytes
29 ; CHECK: movups xmm0, xmmword ptr [esp]
30 ; CHECK: nop # length = 7 bytes
31 ; CHECK: add esp, 48
32 ; CHECK: ret
33 }
OLDNEW
« src/IceTargetLoweringX8632.cpp ('K') | « src/IceTargetLoweringX8632.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698