Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 ; This is a smoke test of randomized register allocation. | |
| 2 | |
| 3 ; RUN: %llvm2ice -rng-seed=1 -randomize-regalloc %s \ | |
|
Jim Stichnoth
2014/08/14 01:10:29
Add an explicit -Om1 option.
Also, add the rest o
wala
2014/08/15 03:37:23
Done.
| |
| 4 ; RUN: | FileCheck %s --check-prefix=OPTM1 | |
| 5 ; RUN: %llvm2ice -O2 -rng-seed=1 -randomize-regalloc %s \ | |
| 6 ; RUN: | FileCheck %s --check-prefix=CHECK | |
| 7 | |
| 8 define <4 x i32> @mul_v4i32(<4 x i32> %a, <4 x i32> %b) { | |
| 9 entry: | |
| 10 %res = mul <4 x i32> %a, %b | |
| 11 ret <4 x i32> %res | |
| 12 ; OPTM1-LABEL: mul_v4i32: | |
| 13 ; OPTM1: sub esp, 48 | |
| 14 ; OPTM1: movups xmmword ptr [esp+32], xmm0 | |
| 15 ; OPTM1: movups xmmword ptr [esp+16], xmm1 | |
| 16 ; OPTM1: movups xmm1, xmmword ptr [esp+32] | |
| 17 ; OPTM1: movups xmm6, xmmword ptr [esp+32] | |
| 18 ; OPTM1: movups xmm3, xmmword ptr [esp+16] | |
| 19 ; OPTM1: pshufd xmm2, xmm6, 49 | |
| 20 ; OPTM1: pshufd xmm4, xmm3, 49 | |
| 21 ; OPTM1: pmuludq xmm1, xmm3 | |
| 22 ; OPTM1: pmuludq xmm2, xmm4 | |
| 23 ; OPTM1: shufps xmm1, xmm2, 136 | |
| 24 ; OPTM1: pshufd xmm0, xmm1, 216 | |
| 25 ; OPTM1: movups xmmword ptr [esp], xmm0 | |
| 26 ; OPTM1: movups xmm0, xmmword ptr [esp] | |
| 27 ; OPTM1: add esp, 48 | |
| 28 ; OPTM1: ret | |
| 29 | |
| 30 ; CHECK-LABEL: mul_v4i32: | |
| 31 ; CHECK: movups xmm5, xmm0 | |
| 32 ; CHECK: pshufd xmm0, xmm0, 49 | |
| 33 ; CHECK: pshufd xmm2, xmm1, 49 | |
| 34 ; CHECK: pmuludq xmm5, xmm1 | |
| 35 ; CHECK: pmuludq xmm0, xmm2 | |
| 36 ; CHECK: shufps xmm5, xmm0, 136 | |
| 37 ; CHECK: pshufd xmm0, xmm5, 216 | |
| 38 ; CHECK: ret | |
| 39 } | |
| OLD | NEW |