1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -enable-unsafe-fp-math -enable-no-signed-zeros-fp-math -mtriple=x86_64-unknown-unknown | FileCheck %s
4 ; Make sure that vectors get the same benefits as scalars when using unsafe-fp-math.
6 ; Subtracting zero is free.
7 define <4 x float> @vec_fsub_zero(<4 x float> %x) {
8 ; CHECK-LABEL: vec_fsub_zero:
11 %sub = fsub <4 x float> %x, zeroinitializer
15 ; Negating doesn't require subtraction.
16 define <4 x float> @vec_fneg(<4 x float> %x) {
17 ; CHECK-LABEL: vec_fneg:
19 ; CHECK-NEXT: xorps {{.*}}(%rip), %xmm0
21 %sub = fsub <4 x float> zeroinitializer, %x