Re-implement the main strength-reduction portion of LoopStrengthReduction.
[oota-llvm.git] / test / CodeGen / X86 / fold-pcmpeqd-1.ll
1 ; RUN: llc < %s -march=x86 -mattr=+sse2 > %t
2 ; RUN: grep pcmpeqd %t | count 1
3 ; RUN: grep xor %t | count 1
4 ; RUN: not grep LCP %t
5
6 define <2 x double> @foo() nounwind {
7   ret <2 x double> bitcast (<2 x i64><i64 -1, i64 -1> to <2 x double>)
8 }
9 define <2 x double> @bar() nounwind {
10   ret <2 x double> bitcast (<2 x i64><i64 0, i64 0> to <2 x double>)
11 }