Index: Makefile.config.in =================================================================== --- Makefile.config.in +++ Makefile.config.in @@ -150,14 +150,12 @@ XCORE_TARGET_FLAGS += -Wl,-Xmapper,--image-size,-Xmapper,$$(($(XCORE_TARGET_NEEDS_MEMORY) * 0x100000)),-Xmapper,--image-base,-Xmapper,$$(($(XCORE_TARGET_NEEDS_MEMORY) * 0x100000)) endif -# PowerPC/Linux needs -ffp-contract=off so that: -# The outputs can be compared to gcc. -# The outputs match the reference outputs. -ifeq ($(ARCH),PowerPC) -ifeq ($(TARGET_OS),Linux) +# To allow for precise checking of tests with floating-point operations, +# turn off fp-contract (FMA codegen). Ideally, we would run everything +# again with -ffp-contract=on and fix any output-checking that is not +# prepared for that possibility. TEST_TARGET_FLAGS += -ffp-contract=off -endif -endif + # # Provide variables specific to llvm-test