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