From: Dan Gohman Date: Tue, 11 Mar 2008 21:37:00 +0000 (+0000) Subject: Add a test to ensure that all-ones vectors are materialized with pcmpeqd. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6a6d27ac0b7607c0ad76a55bc4bd8897fe502c49;p=oota-llvm.git Add a test to ensure that all-ones vectors are materialized with pcmpeqd. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48247 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/X86/all-ones-vector.ll b/test/CodeGen/X86/all-ones-vector.ll new file mode 100644 index 00000000000..a79002b8032 --- /dev/null +++ b/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> +} +define <2 x i64> @loo() { + ret <2 x i64> +} +define <2 x double> @doo() { + ret <2 x double> +} +define <4 x float> @foo() { + ret <4 x float> +}