diff options
author | Dan Gohman <gohman@apple.com> | 2007-07-24 22:55:08 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-07-24 22:55:08 +0000 |
commit | a394117bc0a7a94d99869e2e83ff0647d3aff9a6 (patch) | |
tree | 47600e6f84c3f8ebb1c7e0780be3a734933141e9 /test/CodeGen/X86 | |
parent | 4beedbd0063a8ba6f97db02c3c94707d8ab45b50 (diff) | |
download | external_llvm-a394117bc0a7a94d99869e2e83ff0647d3aff9a6.zip external_llvm-a394117bc0a7a94d99869e2e83ff0647d3aff9a6.tar.gz external_llvm-a394117bc0a7a94d99869e2e83ff0647d3aff9a6.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/CodeGen/X86')
-rw-r--r-- | test/CodeGen/X86/v4f32-immediate.ll | 5 |
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> +} |