[IndVarSimplify] Partially revert r217953 to see if this fixes the bots.
[oota-llvm.git] / test / Transforms / EarlyCSE / floatingpoint.ll
1 ; RUN: opt < %s -S -early-cse | FileCheck %s
2
3 ; Ensure we don't simplify away additions vectors of +0.0's (same as scalars).
4 define <4 x float> @fV( <4 x float> %a) {
5        ; CHECK: %b = fadd <4 x float> %a, zeroinitializer
6        %b = fadd  <4 x float> %a, <float 0.0,float 0.0,float 0.0,float 0.0>
7        ret <4 x float> %b
8 }
9
10 define <4 x float> @fW( <4 x float> %a) {
11        ; CHECK: ret <4 x float> %a
12        %b = fadd  <4 x float> %a, <float -0.0,float -0.0,float -0.0,float -0.0>
13        ret <4 x float> %b
14 }