diff options
Diffstat (limited to 'test/CodeGen/X86/fold-pcmpeqd-1.ll')
-rw-r--r-- | test/CodeGen/X86/fold-pcmpeqd-1.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/X86/fold-pcmpeqd-1.ll b/test/CodeGen/X86/fold-pcmpeqd-1.ll new file mode 100644 index 0000000..cc4198d --- /dev/null +++ b/test/CodeGen/X86/fold-pcmpeqd-1.ll @@ -0,0 +1,11 @@ +; RUN: llc < %s -march=x86 -mattr=+sse2 > %t +; RUN: grep pcmpeqd %t | count 1 +; RUN: grep xor %t | count 1 +; RUN: not grep LCP %t + +define <2 x double> @foo() nounwind { + ret <2 x double> bitcast (<2 x i64><i64 -1, i64 -1> to <2 x double>) +} +define <2 x double> @bar() nounwind { + ret <2 x double> bitcast (<2 x i64><i64 0, i64 0> to <2 x double>) +} |