aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDan Gohman <djg@cray.com>2007-07-24 22:55:08 +0000
committerDan Gohman <djg@cray.com>2007-07-24 22:55:08 +0000
commit21463241e6cd8d8b9396b9ce52927f2f07c683be (patch)
tree47600e6f84c3f8ebb1c7e0780be3a734933141e9 /test
parent4c295477fce9b85d088444247eeb4e096b022c36 (diff)
downloadexternal_llvm-21463241e6cd8d8b9396b9ce52927f2f07c683be.zip
external_llvm-21463241e6cd8d8b9396b9ce52927f2f07c683be.tar.gz
external_llvm-21463241e6cd8d8b9396b9ce52927f2f07c683be.tar.bz2
Use movaps to load a v4f32 build_vector of all-constant values into a
register instead of loading each element individually. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40478 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/X86/v4f32-immediate.ll5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/CodeGen/X86/v4f32-immediate.ll b/test/CodeGen/X86/v4f32-immediate.ll
new file mode 100644
index 0000000..67b5e79
--- /dev/null
+++ b/test/CodeGen/X86/v4f32-immediate.ll
@@ -0,0 +1,5 @@
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse | grep movaps
+
+define <4 x float> @foo() {
+ ret <4 x float> <float 3.223542354, float 2.3, float 1.2, float 0.1>
+}