floatingpoint.ll 515 B

1234567891011121314
  1. ; RUN: opt < %s -S -early-cse | FileCheck %s
  2. ; Ensure we don't simplify away additions vectors of +0.0's (same as scalars).
  3. define <4 x float> @fV( <4 x float> %a) {
  4. ; CHECK: %b = fadd <4 x float> %a, zeroinitializer
  5. %b = fadd <4 x float> %a, <float 0.0,float 0.0,float 0.0,float 0.0>
  6. ret <4 x float> %b
  7. }
  8. define <4 x float> @fW( <4 x float> %a) {
  9. ; CHECK: ret <4 x float> %a
  10. %b = fadd <4 x float> %a, <float -0.0,float -0.0,float -0.0,float -0.0>
  11. ret <4 x float> %b
  12. }