summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/v4f32-immediate.ll
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-07-24 22:55:08 +0000
committerDan Gohman <gohman@apple.com>2007-07-24 22:55:08 +0000
commita394117bc0a7a94d99869e2e83ff0647d3aff9a6 (patch)
tree47600e6f84c3f8ebb1c7e0780be3a734933141e9 /test/CodeGen/X86/v4f32-immediate.ll
parent4beedbd0063a8ba6f97db02c3c94707d8ab45b50 (diff)
downloadllvm-a394117bc0a7a94d99869e2e83ff0647d3aff9a6.tar.gz
llvm-a394117bc0a7a94d99869e2e83ff0647d3aff9a6.tar.bz2
llvm-a394117bc0a7a94d99869e2e83ff0647d3aff9a6.tar.xz
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/CodeGen/X86/v4f32-immediate.ll')
-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 0000000000..67b5e79df8
--- /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>
+}