diff options
author | Craig Topper <craig.topper@gmail.com> | 2011-12-06 09:04:59 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2011-12-06 09:04:59 +0000 |
commit | cb6bd11bd612a3fb3f510a22b51cbaeec292465c (patch) | |
tree | 6fe4fe7a7480fe7d06aef78fda645a2dee180ba8 /test | |
parent | 34671b812a9855623fd9a02e5e2b2cb95a13ba2f (diff) | |
download | external_llvm-cb6bd11bd612a3fb3f510a22b51cbaeec292465c.zip external_llvm-cb6bd11bd612a3fb3f510a22b51cbaeec292465c.tar.gz external_llvm-cb6bd11bd612a3fb3f510a22b51cbaeec292465c.tar.bz2 |
Fix a bunch of SSE/AVX patterns to use v2i64/v4i64 loads since all other integer vector loads are promoted to those.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145927 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/avx-intrinsics-x86.ll | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/X86/avx-intrinsics-x86.ll b/test/CodeGen/X86/avx-intrinsics-x86.ll index eccc842..f583914 100644 --- a/test/CodeGen/X86/avx-intrinsics-x86.ll +++ b/test/CodeGen/X86/avx-intrinsics-x86.ll @@ -2333,6 +2333,12 @@ define <4 x float> @test_x86_avx_vpermilvar_ps(<4 x float> %a0, <4 x i32> %a1) { %res = call <4 x float> @llvm.x86.avx.vpermilvar.ps(<4 x float> %a0, <4 x i32> %a1) ; <<4 x float>> [#uses=1] ret <4 x float> %res } +define <4 x float> @test_x86_avx_vpermilvar_ps_load(<4 x float> %a0, <4 x i32>* %a1) { + ; CHECK: vpermilps + %a2 = load <4 x i32>* %a1 + %res = call <4 x float> @llvm.x86.avx.vpermilvar.ps(<4 x float> %a0, <4 x i32> %a2) ; <<4 x float>> [#uses=1] + ret <4 x float> %res +} declare <4 x float> @llvm.x86.avx.vpermilvar.ps(<4 x float>, <4 x i32>) nounwind readnone |