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

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

Issue 920953002: Subzero: Use -filetype instead of -ias and -elf-writer. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Explicitly set the output file type for unit tests Created 5 years, 10 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/globalinit.pnacl.ll ('k') | unittest/BitcodeMunge.cpp » ('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 ; REQUIRES: allow_dump 3 ; REQUIRES: allow_dump
4 4
5 ; Don't use integrated-as because this currently depends on the # variant 5 ; Don't use filetype=iasm because this currently depends on the # variant
6 ; assembler comment. 6 ; assembler comment.
7 ; RUN: %p2i -i %s -a -sz-seed=1 -nop-insertion -nop-insertion-percentage=50 \ 7 ; RUN: %p2i -i %s -a -sz-seed=1 -nop-insertion -nop-insertion-percentage=50 \
8 ; RUN: -max-nops-per-instruction=1 -integrated-as=false \ 8 ; RUN: -max-nops-per-instruction=1 -filetype=asm \
9 ; RUN: | FileCheck %s --check-prefix=PROB50 9 ; RUN: | FileCheck %s --check-prefix=PROB50
10 ; RUN: %p2i -i %s -a -sz-seed=1 -nop-insertion -nop-insertion-percentage=90 \ 10 ; RUN: %p2i -i %s -a -sz-seed=1 -nop-insertion -nop-insertion-percentage=90 \
11 ; RUN: -max-nops-per-instruction=1 -integrated-as=false \ 11 ; RUN: -max-nops-per-instruction=1 -filetype=asm \
12 ; RUN: | FileCheck %s --check-prefix=PROB90 12 ; RUN: | FileCheck %s --check-prefix=PROB90
13 ; RUN: %p2i -i %s -a -sz-seed=1 -nop-insertion -nop-insertion-percentage=50 \ 13 ; RUN: %p2i -i %s -a -sz-seed=1 -nop-insertion -nop-insertion-percentage=50 \
14 ; RUN: -max-nops-per-instruction=2 -integrated-as=false \ 14 ; RUN: -max-nops-per-instruction=2 -filetype=asm \
15 ; RUN: | FileCheck %s --check-prefix=MAXNOPS2 15 ; RUN: | FileCheck %s --check-prefix=MAXNOPS2
16 16
17 define <4 x i32> @mul_v4i32(<4 x i32> %a, <4 x i32> %b) { 17 define <4 x i32> @mul_v4i32(<4 x i32> %a, <4 x i32> %b) {
18 entry: 18 entry:
19 %res = mul <4 x i32> %a, %b 19 %res = mul <4 x i32> %a, %b
20 ret <4 x i32> %res 20 ret <4 x i32> %res
21 ; PROB50-LABEL: mul_v4i32: 21 ; PROB50-LABEL: mul_v4i32:
22 ; PROB50: nop # variant = 3 22 ; PROB50: nop # variant = 3
23 ; PROB50: subl $60, %esp 23 ; PROB50: subl $60, %esp
24 ; PROB50: nop # variant = 4 24 ; PROB50: nop # variant = 4
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 ; MAXNOPS2: pshufd $216, %xmm0, %xmm0 91 ; MAXNOPS2: pshufd $216, %xmm0, %xmm0
92 ; MAXNOPS2: nop # variant = 3 92 ; MAXNOPS2: nop # variant = 3
93 ; MAXNOPS2: movups %xmm0, (%esp) 93 ; MAXNOPS2: movups %xmm0, (%esp)
94 ; MAXNOPS2: nop # variant = 0 94 ; MAXNOPS2: nop # variant = 0
95 ; MAXNOPS2: movups (%esp), %xmm0 95 ; MAXNOPS2: movups (%esp), %xmm0
96 ; MAXNOPS2: nop # variant = 2 96 ; MAXNOPS2: nop # variant = 2
97 ; MAXNOPS2: addl $60, %esp 97 ; MAXNOPS2: addl $60, %esp
98 ; MAXNOPS2: nop # variant = 4 98 ; MAXNOPS2: nop # variant = 4
99 ; MAXNOPS2: ret 99 ; MAXNOPS2: ret
100 } 100 }
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/globalinit.pnacl.ll ('k') | unittest/BitcodeMunge.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698