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

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

Issue 574133002: Add initial integrated assembler w/ some Xmm ops. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: remove duplicate pxor, and use enum Created 6 years, 3 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/ebp_args.ll ('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
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
4 ; assembler comment.
3 ; RUN: %llvm2ice -rng-seed=1 -nop-insertion -nop-insertion-percentage=50 \ 5 ; RUN: %llvm2ice -rng-seed=1 -nop-insertion -nop-insertion-percentage=50 \
4 ; RUN: -max-nops-per-instruction=1 %s | FileCheck %s --check-prefix=PROB50 6 ; RUN: -max-nops-per-instruction=1 -integrated-as=false %s \
7 ; RUN: | FileCheck %s --check-prefix=PROB50
5 ; RUN: %llvm2ice -rng-seed=1 -nop-insertion -nop-insertion-percentage=90 \ 8 ; RUN: %llvm2ice -rng-seed=1 -nop-insertion -nop-insertion-percentage=90 \
6 ; RUN: -max-nops-per-instruction=1 %s | FileCheck %s --check-prefix=PROB90 9 ; RUN: -max-nops-per-instruction=1 -integrated-as=false %s \
10 ; RUN: | FileCheck %s --check-prefix=PROB90
7 ; RUN: %llvm2ice -rng-seed=1 -nop-insertion -nop-insertion-percentage=50 \ 11 ; RUN: %llvm2ice -rng-seed=1 -nop-insertion -nop-insertion-percentage=50 \
8 ; RUN: -max-nops-per-instruction=2 %s | FileCheck %s --check-prefix=MAXNOPS2 12 ; RUN: -max-nops-per-instruction=2 -integrated-as=false %s \
13 ; RUN: | FileCheck %s --check-prefix=MAXNOPS2
9 14
10 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) {
11 entry: 16 entry:
12 %res = mul <4 x i32> %a, %b 17 %res = mul <4 x i32> %a, %b
13 ret <4 x i32> %res 18 ret <4 x i32> %res
14 ; PROB50-LABEL: mul_v4i32: 19 ; PROB50-LABEL: mul_v4i32:
15 ; PROB50: nop # variant = 3 20 ; PROB50: nop # variant = 3
16 ; PROB50: sub esp, 60 21 ; PROB50: sub esp, 60
17 ; PROB50: nop # variant = 4 22 ; PROB50: nop # variant = 4
18 ; PROB50: movups xmmword ptr [esp+32], xmm0 23 ; 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 89 ; MAXNOPS2: pshufd xmm1, xmm0, 216
85 ; MAXNOPS2: nop # variant = 3 90 ; MAXNOPS2: nop # variant = 3
86 ; MAXNOPS2: movups xmmword ptr [esp], xmm1 91 ; MAXNOPS2: movups xmmword ptr [esp], xmm1
87 ; MAXNOPS2: nop # variant = 0 92 ; MAXNOPS2: nop # variant = 0
88 ; MAXNOPS2: movups xmm0, xmmword ptr [esp] 93 ; MAXNOPS2: movups xmm0, xmmword ptr [esp]
89 ; MAXNOPS2: nop # variant = 2 94 ; MAXNOPS2: nop # variant = 2
90 ; MAXNOPS2: add esp, 60 95 ; MAXNOPS2: add esp, 60
91 ; MAXNOPS2: nop # variant = 4 96 ; MAXNOPS2: nop # variant = 4
92 ; MAXNOPS2: ret 97 ; MAXNOPS2: ret
93 } 98 }
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/ebp_args.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698