summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/sse-align-3.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/X86/sse-align-3.ll')
-rw-r--r--llvm/test/CodeGen/X86/sse-align-3.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/sse-align-3.ll b/llvm/test/CodeGen/X86/sse-align-3.ll
new file mode 100644
index 00000000000..6f96bba69e4
--- /dev/null
+++ b/llvm/test/CodeGen/X86/sse-align-3.ll
@@ -0,0 +1,12 @@
+; RUN: llvm-as < %s | llc -march=x86-64 | grep movap | wc -l | grep 2
+
+define void @foo(<4 x float>* %p, <4 x float> %x)
+{
+ store <4 x float> %x, <4 x float>* %p
+ ret void
+}
+define void @bar(<2 x double>* %p, <2 x double> %x)
+{
+ store <2 x double> %x, <2 x double>* %p
+ ret void
+}
OpenPOWER on IntegriCloud