[x86][AArch64] adjust fast-math-flags in tests; NFC
authorSanjay Patel <spatel@rotateright.com>
Mon, 24 Aug 2020 22:05:05 +0000 (18:05 -0400)
committerSanjay Patel <spatel@rotateright.com>
Mon, 24 Aug 2020 22:16:13 +0000 (18:16 -0400)
This goes with the proposal in D86403.

llvm/test/CodeGen/AArch64/sqrt-fastmath.ll
llvm/test/CodeGen/X86/sqrt-fastmath.ll

index be13a2e..a8cb61f 100644 (file)
@@ -493,7 +493,7 @@ define <2 x double> @sqrt_fdiv_common_operand_vec(<2 x double> %x) nounwind {
 ; CHECK-NEXT:    fmul v0.2d, v0.2d, v1.2d
 ; CHECK-NEXT:    ret
   %sqrt = call <2 x double> @llvm.sqrt.v2f64(<2 x double> %x)
-  %r = fdiv arcp reassoc <2 x double> %x, %sqrt
+  %r = fdiv nsz arcp reassoc <2 x double> %x, %sqrt
   ret <2 x double> %r
 }
 
index a0a65e5..0f8c6ef 100644 (file)
@@ -930,7 +930,7 @@ define <2 x double> @sqrt_fdiv_common_operand_vec(<2 x double> %x) nounwind {
 ; AVX-NEXT:    vdivpd %xmm1, %xmm0, %xmm0
 ; AVX-NEXT:    retq
   %sqrt = call <2 x double> @llvm.sqrt.v2f64(<2 x double> %x)
-  %r = fdiv arcp reassoc <2 x double> %x, %sqrt
+  %r = fdiv nsz arcp reassoc <2 x double> %x, %sqrt
   ret <2 x double> %r
 }