From a74dc598fb6b878908ffe769025f79f17e54cab0 Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Mon, 24 Aug 2020 18:05:05 -0400 Subject: [PATCH] [x86][AArch64] adjust fast-math-flags in tests; NFC This goes with the proposal in D86403. --- llvm/test/CodeGen/AArch64/sqrt-fastmath.ll | 2 +- llvm/test/CodeGen/X86/sqrt-fastmath.ll | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 } -- 2.7.4