summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2010-08-12 20:20:53 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2010-08-12 20:20:53 +0000
commit7f704b31a9a2a25d02b5071ca13a66e936e021ef (patch)
treee6a79fe572a6f65bec0d59b4297b117d70776a38 /llvm/test/CodeGen
parentc3a6ade0bb17db30a4551ace7f6407f0efeb2e68 (diff)
downloadbcm5719-llvm-7f704b31a9a2a25d02b5071ca13a66e936e021ef.tar.gz
bcm5719-llvm-7f704b31a9a2a25d02b5071ca13a66e936e021ef.zip
- Teach SSEDomainFix to switch between different levels of AVX instructions. Here we guess that AVX will have domain issues, so just implement them for consistency and in the future we remove if it's unnecessary.
- Make foldMemoryOperandImpl aware of 256-bit zero vectors folding and support the 128-bit counterparts of AVX too. - Make sure MOV[AU]PS instructions are only selected when SSE1 is enabled, and duplicate the patterns to match AVX. - Add a testcase for a simple 128-bit zero vector creation. llvm-svn: 110946
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/X86/avx-128.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/avx-128.ll b/llvm/test/CodeGen/X86/avx-128.ll
new file mode 100644
index 00000000000..a72160be719
--- /dev/null
+++ b/llvm/test/CodeGen/X86/avx-128.ll
@@ -0,0 +1,12 @@
+; RUN: llc < %s -mtriple=x86_64-apple-darwin -march=x86 -mcpu=corei7 -mattr=avx | FileCheck %s
+
+@z = common global <4 x float> zeroinitializer, align 16
+
+define void @zero() nounwind ssp {
+entry:
+ ; CHECK: vpxor
+ ; CHECK: vmovaps
+ store <4 x float> zeroinitializer, <4 x float>* @z, align 16
+ ret void
+}
+
OpenPOWER on IntegriCloud