OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |