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

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: Fixes for rebase from master. 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
« no previous file with comments | « tests_lit/llvm2ice_tests/nacl-other-intrinsics.ll ('k') | tests_lit/llvm2ice_tests/phi.ll » ('j') | 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 nop insertion. 1 ; This is a smoke test of nop insertion.
2 2
3 ; Don't use integrated-as because this currently depends on the # variant 3 ; Don't use integrated-as because this currently depends on the # variant
4 ; assembler comment. 4 ; assembler comment.
5 ; RUN: %llvm2ice -rng-seed=1 -nop-insertion -nop-insertion-percentage=50 \ 5 ; RUN: %p2i -i %s -a -rng-seed=1 -nop-insertion -nop-insertion-percentage=50 \
6 ; RUN: -max-nops-per-instruction=1 -integrated-as=false %s \ 6 ; RUN: -max-nops-per-instruction=1 -integrated-as=false \
7 ; RUN: | FileCheck %s --check-prefix=PROB50 7 ; RUN: | FileCheck %s --check-prefix=PROB50
8 ; RUN: %llvm2ice -rng-seed=1 -nop-insertion -nop-insertion-percentage=90 \ 8 ; RUN: %p2i -i %s -a -rng-seed=1 -nop-insertion -nop-insertion-percentage=90 \
9 ; RUN: -max-nops-per-instruction=1 -integrated-as=false %s \ 9 ; RUN: -max-nops-per-instruction=1 -integrated-as=false \
10 ; RUN: | FileCheck %s --check-prefix=PROB90 10 ; RUN: | FileCheck %s --check-prefix=PROB90
11 ; RUN: %llvm2ice -rng-seed=1 -nop-insertion -nop-insertion-percentage=50 \ 11 ; RUN: %p2i -i %s -a -rng-seed=1 -nop-insertion -nop-insertion-percentage=50 \
12 ; RUN: -max-nops-per-instruction=2 -integrated-as=false %s \ 12 ; RUN: -max-nops-per-instruction=2 -integrated-as=false \
13 ; RUN: | FileCheck %s --check-prefix=MAXNOPS2 13 ; RUN: | FileCheck %s --check-prefix=MAXNOPS2
14 14
15 define <4 x i32> @mul_v4i32(<4 x i32> %a, <4 x i32> %b) { 15 define <4 x i32> @mul_v4i32(<4 x i32> %a, <4 x i32> %b) {
16 entry: 16 entry:
17 %res = mul <4 x i32> %a, %b 17 %res = mul <4 x i32> %a, %b
18 ret <4 x i32> %res 18 ret <4 x i32> %res
19 ; PROB50-LABEL: mul_v4i32: 19 ; PROB50-LABEL: mul_v4i32:
20 ; PROB50: nop # variant = 3 20 ; PROB50: nop # variant = 3
21 ; PROB50: sub esp, 60 21 ; PROB50: sub esp, 60
22 ; PROB50: nop # variant = 4 22 ; PROB50: nop # variant = 4
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 ; MAXNOPS2: pshufd xmm1, xmm0, 216 89 ; MAXNOPS2: pshufd xmm1, xmm0, 216
90 ; MAXNOPS2: nop # variant = 3 90 ; MAXNOPS2: nop # variant = 3
91 ; MAXNOPS2: movups xmmword ptr [esp], xmm1 91 ; MAXNOPS2: movups xmmword ptr [esp], xmm1
92 ; MAXNOPS2: nop # variant = 0 92 ; MAXNOPS2: nop # variant = 0
93 ; MAXNOPS2: movups xmm0, xmmword ptr [esp] 93 ; MAXNOPS2: movups xmm0, xmmword ptr [esp]
94 ; MAXNOPS2: nop # variant = 2 94 ; MAXNOPS2: nop # variant = 2
95 ; MAXNOPS2: add esp, 60 95 ; MAXNOPS2: add esp, 60
96 ; MAXNOPS2: nop # variant = 4 96 ; MAXNOPS2: nop # variant = 4
97 ; MAXNOPS2: ret 97 ; MAXNOPS2: ret
98 } 98 }
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/nacl-other-intrinsics.ll ('k') | tests_lit/llvm2ice_tests/phi.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698