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

Side by Side Diff: tests_lit/llvm2ice_tests/nop-insertion.ll

Issue 600043002: Clean up run script to use for testing Subzero. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 6 years, 2 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
1 ; This is a smoke test of nop insertion. 1 ; This is a smoke test of nop insertion.
2 2
3 ; RUN: %llvm2ice -rng-seed=1 -nop-insertion -nop-insertion-percentage=50 \ 3 ; RUN: %p2i -i %s -a -rng-seed=1 -nop-insertion -nop-insertion-percentage=50 \
4 ; RUN: -max-nops-per-instruction=1 %s | FileCheck %s --check-prefix=PROB50 4 ; RUN: -max-nops-per-instruction=1 | FileCheck %s --check-prefix=PROB50
5 ; RUN: %llvm2ice -rng-seed=1 -nop-insertion -nop-insertion-percentage=90 \ 5 ; RUN: %p2i -i %s -a -rng-seed=1 -nop-insertion -nop-insertion-percentage=90 \
6 ; RUN: -max-nops-per-instruction=1 %s | FileCheck %s --check-prefix=PROB90 6 ; RUN: -max-nops-per-instruction=1 | FileCheck %s --check-prefix=PROB90
7 ; RUN: %llvm2ice -rng-seed=1 -nop-insertion -nop-insertion-percentage=50 \ 7 ; RUN: %p2i -i %s -a -rng-seed=1 -nop-insertion -nop-insertion-percentage=50 \
8 ; RUN: -max-nops-per-instruction=2 %s | FileCheck %s --check-prefix=MAXNOPS2 8 ; RUN: -max-nops-per-instruction=2 | FileCheck %s --check-prefix=MAXNOPS2
9 9
10 define <4 x i32> @mul_v4i32(<4 x i32> %a, <4 x i32> %b) { 10 define <4 x i32> @mul_v4i32(<4 x i32> %a, <4 x i32> %b) {
11 entry: 11 entry:
12 %res = mul <4 x i32> %a, %b 12 %res = mul <4 x i32> %a, %b
13 ret <4 x i32> %res 13 ret <4 x i32> %res
14 ; PROB50-LABEL: mul_v4i32: 14 ; PROB50-LABEL: mul_v4i32:
15 ; PROB50: nop # variant = 3 15 ; PROB50: nop # variant = 3
16 ; PROB50: sub esp, 60 16 ; PROB50: sub esp, 60
17 ; PROB50: nop # variant = 4 17 ; PROB50: nop # variant = 4
18 ; PROB50: movups xmmword ptr [esp+32], xmm0 18 ; PROB50: movups xmmword ptr [esp+32], xmm0
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 ; MAXNOPS2: pshufd xmm1, xmm0, 216 84 ; MAXNOPS2: pshufd xmm1, xmm0, 216
85 ; MAXNOPS2: nop # variant = 3 85 ; MAXNOPS2: nop # variant = 3
86 ; MAXNOPS2: movups xmmword ptr [esp], xmm1 86 ; MAXNOPS2: movups xmmword ptr [esp], xmm1
87 ; MAXNOPS2: nop # variant = 0 87 ; MAXNOPS2: nop # variant = 0
88 ; MAXNOPS2: movups xmm0, xmmword ptr [esp] 88 ; MAXNOPS2: movups xmm0, xmmword ptr [esp]
89 ; MAXNOPS2: nop # variant = 2 89 ; MAXNOPS2: nop # variant = 2
90 ; MAXNOPS2: add esp, 60 90 ; MAXNOPS2: add esp, 60
91 ; MAXNOPS2: nop # variant = 4 91 ; MAXNOPS2: nop # variant = 4
92 ; MAXNOPS2: ret 92 ; MAXNOPS2: ret
93 } 93 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698