From: Sanjay Patel Date: Mon, 24 Aug 2020 22:05:05 +0000 (-0400) Subject: [x86][AArch64] adjust fast-math-flags in tests; NFC X-Git-Tag: llvmorg-13-init~13870 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a74dc598fb6b878908ffe769025f79f17e54cab0;p=platform%2Fupstream%2Fllvm.git [x86][AArch64] adjust fast-math-flags in tests; NFC This goes with the proposal in D86403. --- diff --git a/llvm/test/CodeGen/AArch64/sqrt-fastmath.ll b/llvm/test/CodeGen/AArch64/sqrt-fastmath.ll index be13a2e..a8cb61f 100644 --- a/llvm/test/CodeGen/AArch64/sqrt-fastmath.ll +++ b/llvm/test/CodeGen/AArch64/sqrt-fastmath.ll @@ -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 } diff --git a/llvm/test/CodeGen/X86/sqrt-fastmath.ll b/llvm/test/CodeGen/X86/sqrt-fastmath.ll index a0a65e5..0f8c6ef 100644 --- a/llvm/test/CodeGen/X86/sqrt-fastmath.ll +++ b/llvm/test/CodeGen/X86/sqrt-fastmath.ll @@ -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 }