diff options
| author | Dan Gohman <gohman@apple.com> | 2008-03-11 21:37:00 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2008-03-11 21:37:00 +0000 |
| commit | 6616836e71c1080f2b5606bf6e7ff26e10783273 (patch) | |
| tree | bb6270c7dd24648bc1560cce7a15a86fdbe7a970 /llvm | |
| parent | a3891365b52d3b7416d6d861a0aca2e64b72d212 (diff) | |
| download | bcm5719-llvm-6616836e71c1080f2b5606bf6e7ff26e10783273.tar.gz bcm5719-llvm-6616836e71c1080f2b5606bf6e7ff26e10783273.zip | |
Add a test to ensure that all-ones vectors are materialized with pcmpeqd.
llvm-svn: 48247
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/test/CodeGen/X86/all-ones-vector.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/all-ones-vector.ll b/llvm/test/CodeGen/X86/all-ones-vector.ll new file mode 100644 index 00000000000..a79002b8032 --- /dev/null +++ b/llvm/test/CodeGen/X86/all-ones-vector.ll @@ -0,0 +1,14 @@ +; RUN: llvm-as < %s | llc -march=x86 | grep pcmpeqd | count 4 + +define <4 x i32> @ioo() { + ret <4 x i32> <i32 -1, i32 -1, i32 -1, i32 -1> +} +define <2 x i64> @loo() { + ret <2 x i64> <i64 -1, i64 -1> +} +define <2 x double> @doo() { + ret <2 x double> <double 0xffffffffffffffff, double 0xffffffffffffffff> +} +define <4 x float> @foo() { + ret <4 x float> <float 0xffffffffe0000000, float 0xffffffffe0000000, float 0xffffffffe0000000, float 0xffffffffe0000000> +} |

