| OLD | NEW |
| 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 integrated-as because this currently depends on the # variant |
| 6 ; assembler comment. | 6 ; assembler comment. |
| 7 ; RUN: %p2i -i %s -a -rng-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 -integrated-as=false \ |
| 9 ; RUN: | FileCheck %s --check-prefix=PROB50 | 9 ; RUN: | FileCheck %s --check-prefix=PROB50 |
| 10 ; RUN: %p2i -i %s -a -rng-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 -integrated-as=false \ |
| 12 ; RUN: | FileCheck %s --check-prefix=PROB90 | 12 ; RUN: | FileCheck %s --check-prefix=PROB90 |
| 13 ; RUN: %p2i -i %s -a -rng-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 -integrated-as=false \ |
| 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 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 } |
| OLD | NEW |