aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2013-07-18 07:16:44 +0000
committerCraig Topper <craig.topper@gmail.com>2013-07-18 07:16:44 +0000
commitfe754512dcab6bb4bce4d3ea370c3202894e711b (patch)
treeda590e78dc8bfb50d059f85e3ee472e7daa98f49 /test
parentf7c45ce3f59d993b1b7f8edbe07304328ac71b12 (diff)
downloadexternal_llvm-fe754512dcab6bb4bce4d3ea370c3202894e711b.zip
external_llvm-fe754512dcab6bb4bce4d3ea370c3202894e711b.tar.gz
external_llvm-fe754512dcab6bb4bce4d3ea370c3202894e711b.tar.bz2
Fix copy and paste bug from r186491 to make v2f64 use MOVAPD/MOVUPD as it should.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186566 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/X86/fast-isel-store.ll16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CodeGen/X86/fast-isel-store.ll b/test/CodeGen/X86/fast-isel-store.ll
index 06f5b66..3d2a46c 100644
--- a/test/CodeGen/X86/fast-isel-store.ll
+++ b/test/CodeGen/X86/fast-isel-store.ll
@@ -46,3 +46,19 @@ define <4 x float> @test_store_4xf32_aligned(<4 x float>* nocapture %addr, <4 x
store <4 x float> %value, <4 x float>* %addr, align 16
ret <4 x float> %value
}
+
+define <2 x double> @test_store_2xf64(<2 x double>* nocapture %addr, <2 x double> %value, <2 x double> %value2) {
+; CHECK: movupd
+; CHECK: ret
+ %foo = fadd <2 x double> %value, %value2 ; to force dobule type on store
+ store <2 x double> %foo, <2 x double>* %addr, align 1
+ ret <2 x double> %foo
+}
+
+define <2 x double> @test_store_2xf64_aligned(<2 x double>* nocapture %addr, <2 x double> %value, <2 x double> %value2) {
+; CHECK: movapd
+; CHECK: ret
+ %foo = fadd <2 x double> %value, %value2 ; to force dobule type on store
+ store <2 x double> %foo, <2 x double>* %addr, align 16
+ ret <2 x double> %foo
+}