[cfe-dev] a patch to remove FP contraction from the 20 newly-failing tests when my FP-contraction-default-on patch is applied

Abe Skolnik via cfe-dev cfe-dev at lists.llvm.org
Thu Sep 29 15:06:44 PDT 2016


diff --git a/MultiSource/Applications/oggenc/CMakeLists.txt 
b/MultiSource/Applications/oggenc/CMakeLists.txt
index 640db0e..a90fbcf 100644
--- a/MultiSource/Applications/oggenc/CMakeLists.txt
+++ b/MultiSource/Applications/oggenc/CMakeLists.txt
@@ -1,5 +1,5 @@
  set(PROG oggenc)
-list(APPEND CPPFLAGS -fno-strict-aliasing)
+list(APPEND CFLAGS -fno-strict-aliasing -ffp-contract=off)
  list(APPEND LDFLAGS -lm)
  set(STDIN_FILENAME ${CMAKE_CURRENT_SOURCE_DIR}/tune)
  set(RUN_OPTIONS "-Q -s 901820 -")
diff --git a/MultiSource/Applications/oggenc/Makefile b/MultiSource/Applications/oggenc/Makefile
index 99d6d4c..2142ccf 100644
--- a/MultiSource/Applications/oggenc/Makefile
+++ b/MultiSource/Applications/oggenc/Makefile
@@ -1,7 +1,7 @@
  LEVEL = ../../..
  PROG = oggenc

-CPPFLAGS = -fno-strict-aliasing
+CFLAGS = -fno-strict-aliasing -ffp-contract=off
  LDFLAGS  = -lm

  STDIN_FILENAME = $(SourceDir)/tune
diff --git a/MultiSource/Benchmarks/VersaBench/beamformer/CMakeLists.txt 
b/MultiSource/Benchmarks/VersaBench/beamformer/CMakeLists.txt
index f1a959e..b3cfdb6 100644
--- a/MultiSource/Benchmarks/VersaBench/beamformer/CMakeLists.txt
+++ b/MultiSource/Benchmarks/VersaBench/beamformer/CMakeLists.txt
@@ -1,4 +1,6 @@
  list(APPEND LDFLAGS -lm)
+list(APPEND CFLAGS   -ffp-contract=off)
+list(APPEND CXXFLAGS -ffp-contract=off)
  set(PROG beamformer)
  if(DEFINED LARGE_PROBLEM_SIZE)
    set(RUN_OPTIONS -i 400)
diff --git a/MultiSource/Benchmarks/VersaBench/beamformer/Makefile 
b/MultiSource/Benchmarks/VersaBench/beamformer/Makefile
index 11b2834..401359e 100644
--- a/MultiSource/Benchmarks/VersaBench/beamformer/Makefile
+++ b/MultiSource/Benchmarks/VersaBench/beamformer/Makefile
@@ -1,6 +1,9 @@
  LEVEL = ../../../..
  LDFLAGS += -lm

+CFLAGS   += -ffp-contract=off
+CXXFLAGS += -ffp-contract=off
+
  PROG     = beamformer
  ifdef LARGE_PROBLEM_SIZE
  RUN_OPTIONS = -i 400
diff --git a/SingleSource/Benchmarks/Linpack/CMakeLists.txt 
b/SingleSource/Benchmarks/Linpack/CMakeLists.txt
index ac4dd8e..3ae454a 100644
--- a/SingleSource/Benchmarks/Linpack/CMakeLists.txt
+++ b/SingleSource/Benchmarks/Linpack/CMakeLists.txt
@@ -1,3 +1,5 @@
  list(APPEND LDFLAGS -lm)
  set(FP_TOLERANCE 0.0001)
+list(APPEND CFLAGS   -ffp-contract=off)
+list(APPEND CXXFLAGS -ffp-contract=off)
  llvm_singlesource()
diff --git a/SingleSource/Benchmarks/Linpack/Makefile b/SingleSource/Benchmarks/Linpack/Makefile
index 9ac36e7..9983f84 100644
--- a/SingleSource/Benchmarks/Linpack/Makefile
+++ b/SingleSource/Benchmarks/Linpack/Makefile
@@ -1,6 +1,9 @@
  LEVEL = ../../..
  LDFLAGS += -lm

+CFLAGS   += -ffp-contract=off
+CXXFLAGS += -ffp-contract=off
+
  FP_TOLERANCE := 0.0001

  include $(LEVEL)/SingleSource/Makefile.singlesrc
diff --git a/SingleSource/Benchmarks/Polybench/datamining/correlation/CMakeLists.txt 
b/SingleSource/Benchmarks/Polybench/datamining/correlation/CMakeLists.txt
index f210afb..6090ab6 100644
--- a/SingleSource/Benchmarks/Polybench/datamining/correlation/CMakeLists.txt
+++ b/SingleSource/Benchmarks/Polybench/datamining/correlation/CMakeLists.txt
@@ -1,6 +1,8 @@
  set(POLYBENCH_UTILS SingleSource/Benchmarks/Polybench/utilities )
  set(PROG correlation)
  list(APPEND CFLAGS -I ${CMAKE_SOURCE_DIR}/${POLYBENCH_UTILS} -DPOLYBENCH_DUMP_ARRAYS)
+list(APPEND CFLAGS   -ffp-contract=off)
+list(APPEND CXXFLAGS -ffp-contract=off)
  if(DEFINED SMALL_PROBLEM_SIZE)
    list(APPEND CFLAGS -DSMALL_DATASET)
  endif()
diff --git a/SingleSource/Benchmarks/Polybench/datamining/correlation/Makefile 
b/SingleSource/Benchmarks/Polybench/datamining/correlation/Makefile
index a3fd7f4..740b9de 100644
--- a/SingleSource/Benchmarks/Polybench/datamining/correlation/Makefile
+++ b/SingleSource/Benchmarks/Polybench/datamining/correlation/Makefile
@@ -4,6 +4,9 @@ POLYBENCH_UTILS = SingleSource/Benchmarks/Polybench/utilities
  PROG          = correlation
  CFLAGS        += -I $(PROJ_SRC_ROOT)/$(POLYBENCH_UTILS) -DPOLYBENCH_DUMP_ARRAYS

+CFLAGS   += -ffp-contract=off
+CXXFLAGS += -ffp-contract=off
+
  ifdef SMALL_PROBLEM_SIZE
  CFLAGS        += -DSMALL_DATASET
  endif
diff --git a/SingleSource/Benchmarks/Polybench/datamining/covariance/CMakeLists.txt 
b/SingleSource/Benchmarks/Polybench/datamining/covariance/CMakeLists.txt
index 13e6bd4..d8d6275 100644
--- a/SingleSource/Benchmarks/Polybench/datamining/covariance/CMakeLists.txt
+++ b/SingleSource/Benchmarks/Polybench/datamining/covariance/CMakeLists.txt
@@ -1,6 +1,8 @@
  set(POLYBENCH_UTILS SingleSource/Benchmarks/Polybench/utilities )
  set(PROG covariance)
  list(APPEND CFLAGS -I ${CMAKE_SOURCE_DIR}/${POLYBENCH_UTILS} -DPOLYBENCH_DUMP_ARRAYS)
+list(APPEND CFLAGS   -ffp-contract=off)
+list(APPEND CXXFLAGS -ffp-contract=off)
  if(DEFINED SMALL_PROBLEM_SIZE)
    list(APPEND CFLAGS -DSMALL_DATASET)
  endif()
diff --git a/SingleSource/Benchmarks/Polybench/datamining/covariance/Makefile 
b/SingleSource/Benchmarks/Polybench/datamining/covariance/Makefile
index 5c5b499..02e2f32 100644
--- a/SingleSource/Benchmarks/Polybench/datamining/covariance/Makefile
+++ b/SingleSource/Benchmarks/Polybench/datamining/covariance/Makefile
@@ -5,6 +5,9 @@ POLYBENCH_UTILS = SingleSource/Benchmarks/Polybench/utilities
  PROG          = covariance
  CFLAGS        += -I $(PROJ_SRC_ROOT)/$(POLYBENCH_UTILS) -DPOLYBENCH_DUMP_ARRAYS

+CFLAGS   += -ffp-contract=off
+CXXFLAGS += -ffp-contract=off
+
  ifdef SMALL_PROBLEM_SIZE
  CFLAGS        += -DSMALL_DATASET
  endif
diff --git a/SingleSource/Benchmarks/Polybench/linear-algebra/CMakeLists.txt 
b/SingleSource/Benchmarks/Polybench/linear-algebra/CMakeLists.txt
index 517ea44..ae8ce51 100644
--- a/SingleSource/Benchmarks/Polybench/linear-algebra/CMakeLists.txt
+++ b/SingleSource/Benchmarks/Polybench/linear-algebra/CMakeLists.txt
@@ -1 +1,3 @@
  llvm_add_subdirectories(kernels solvers)
+list(APPEND CFLAGS   -ffp-contract=off)
+list(APPEND CXXFLAGS -ffp-contract=off)
diff --git a/SingleSource/Benchmarks/Polybench/linear-algebra/Makefile 
b/SingleSource/Benchmarks/Polybench/linear-algebra/Makefile
index cccf1bc..653a7bb 100644
--- a/SingleSource/Benchmarks/Polybench/linear-algebra/Makefile
+++ b/SingleSource/Benchmarks/Polybench/linear-algebra/Makefile
@@ -4,6 +4,9 @@
  LEVEL = ../../../..
  PARALLEL_DIRS = kernels solvers

+CFLAGS   += -ffp-contract=off
+CXXFLAGS += -ffp-contract=off
+
  include $(LEVEL)/Makefile.config
  include $(LEVEL)/Makefile.programs

diff --git a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/2mm/CMakeLists.txt 
b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/2mm/CMakeLists.txt
index fc8f325..bacf5c1 100644
--- a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/2mm/CMakeLists.txt
+++ b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/2mm/CMakeLists.txt
@@ -1,4 +1,6 @@
  set(POLYBENCH_UTILS SingleSource/Benchmarks/Polybench/utilities )
+list(APPEND CFLAGS   -ffp-contract=off)
+list(APPEND CXXFLAGS -ffp-contract=off)
  set(PROG 2mm)
  list(APPEND CFLAGS -I ${CMAKE_SOURCE_DIR}/${POLYBENCH_UTILS} -DPOLYBENCH_DUMP_ARRAYS)
  if(DEFINED SMALL_PROBLEM_SIZE)
diff --git a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/2mm/Makefile 
b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/2mm/Makefile
index 457a926..e40b937 100644
--- a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/2mm/Makefile
+++ b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/2mm/Makefile
@@ -12,6 +12,9 @@ XCORE_TARGET_NEEDS_MEMORY := 64
  endif
  endif

+CFLAGS   += -ffp-contract=off
+CXXFLAGS += -ffp-contract=off
+
  ifeq ($(ARCH),Mips)
  RUNTIMELIMIT := 2000
  else ifeq ($(ARCH),XCore)
diff --git a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/3mm/CMakeLists.txt 
b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/3mm/CMakeLists.txt
index f16ea76..a190dbf 100644
--- a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/3mm/CMakeLists.txt
+++ b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/3mm/CMakeLists.txt
@@ -1,5 +1,7 @@
  set(POLYBENCH_UTILS SingleSource/Benchmarks/Polybench/utilities )
  set(PROG 3mm)
+list(APPEND CFLAGS   -ffp-contract=off)
+list(APPEND CXXFLAGS -ffp-contract=off)
  list(APPEND CFLAGS -I ${CMAKE_SOURCE_DIR}/${POLYBENCH_UTILS} -DPOLYBENCH_DUMP_ARRAYS)
  if(DEFINED SMALL_PROBLEM_SIZE)
    list(APPEND CFLAGS -DSMALL_DATASET)
diff --git a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/3mm/Makefile 
b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/3mm/Makefile
index aeec3e2..d650e65 100644
--- a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/3mm/Makefile
+++ b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/3mm/Makefile
@@ -12,6 +12,9 @@ XCORE_TARGET_NEEDS_MEMORY := 64
  endif
  endif

+CFLAGS   += -ffp-contract=off
+CXXFLAGS += -ffp-contract=off
+
  ifeq ($(ARCH),Mips)
  RUNTIMELIMIT := 2000
  else ifeq ($(ARCH),XCore)
diff --git a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/atax/CMakeLists.txt 
b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/atax/CMakeLists.txt
index b0b3898..cde61b4 100644
--- a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/atax/CMakeLists.txt
+++ b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/atax/CMakeLists.txt
@@ -1,4 +1,6 @@
  set(POLYBENCH_UTILS SingleSource/Benchmarks/Polybench/utilities )
+list(APPEND CFLAGS   -ffp-contract=off)
+list(APPEND CXXFLAGS -ffp-contract=off)
  set(PROG atax)
  list(APPEND CFLAGS -I ${CMAKE_SOURCE_DIR}/${POLYBENCH_UTILS} -DPOLYBENCH_DUMP_ARRAYS)
  set(HASH_PROGRAM_OUTPUT 1)
diff --git a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/atax/Makefile 
b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/atax/Makefile
index 2d4fc1f..39373f6 100644
--- a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/atax/Makefile
+++ b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/atax/Makefile
@@ -4,6 +4,9 @@ POLYBENCH_UTILS = SingleSource/Benchmarks/Polybench/utilities
  PROG          = atax
  CFLAGS        += -I $(PROJ_SRC_ROOT)/$(POLYBENCH_UTILS) -DPOLYBENCH_DUMP_ARRAYS

+CFLAGS   += -ffp-contract=off
+CXXFLAGS += -ffp-contract=off
+
  HASH_PROGRAM_OUTPUT = 1

  ifeq ($(ARCH),XCore)
diff --git a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/bicg/CMakeLists.txt 
b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/bicg/CMakeLists.txt
index 9c517f7..b1b1482 100644
--- a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/bicg/CMakeLists.txt
+++ b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/bicg/CMakeLists.txt
@@ -1,4 +1,6 @@
  set(POLYBENCH_UTILS SingleSource/Benchmarks/Polybench/utilities )
+list(APPEND CFLAGS   -ffp-contract=off)
+list(APPEND CXXFLAGS -ffp-contract=off)
  set(PROG bicg)
  list(APPEND CFLAGS -I ${CMAKE_SOURCE_DIR}/${POLYBENCH_UTILS} -DPOLYBENCH_DUMP_ARRAYS)
  set(HASH_PROGRAM_OUTPUT 1)
diff --git a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/bicg/Makefile 
b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/bicg/Makefile
index b58d344..f338d31 100644
--- a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/bicg/Makefile
+++ b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/bicg/Makefile
@@ -4,6 +4,9 @@ POLYBENCH_UTILS = SingleSource/Benchmarks/Polybench/utilities
  PROG          = bicg
  CFLAGS        += -I $(PROJ_SRC_ROOT)/$(POLYBENCH_UTILS) -DPOLYBENCH_DUMP_ARRAYS

+CFLAGS   += -ffp-contract=off
+CXXFLAGS += -ffp-contract=off
+
  HASH_PROGRAM_OUTPUT = 1

  ifeq ($(ARCH),XCore)
diff --git a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/cholesky/CMakeLists.txt 
b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/cholesky/CMakeLists.txt
index a3931e5..0f3f914 100644
--- a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/cholesky/CMakeLists.txt
+++ b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/cholesky/CMakeLists.txt
@@ -1,4 +1,6 @@
  set(POLYBENCH_UTILS SingleSource/Benchmarks/Polybench/utilities )
+list(APPEND CFLAGS   -ffp-contract=off)
+list(APPEND CXXFLAGS -ffp-contract=off)
  set(PROG cholesky)
  list(APPEND CFLAGS -I ${CMAKE_SOURCE_DIR}/${POLYBENCH_UTILS} -DPOLYBENCH_DUMP_ARRAYS)
  if(DEFINED SMALL_PROBLEM_SIZE)
diff --git a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/cholesky/Makefile 
b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/cholesky/Makefile
index 4b7d13b..fe5f097 100644
--- a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/cholesky/Makefile
+++ b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/cholesky/Makefile
@@ -8,6 +8,9 @@ ifdef SMALL_PROBLEM_SIZE
  CFLAGS        += -DSMALL_DATASET
  endif

+CFLAGS   += -ffp-contract=off
+CXXFLAGS += -ffp-contract=off
+
  HASH_PROGRAM_OUTPUT = 1

  include $(LEVEL)/SingleSource/Makefile.singlesrc
diff --git a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/gemver/CMakeLists.txt 
b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/gemver/CMakeLists.txt
index 8bce4c7..6d0980c 100644
--- a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/gemver/CMakeLists.txt
+++ b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/gemver/CMakeLists.txt
@@ -1,4 +1,6 @@
  set(POLYBENCH_UTILS SingleSource/Benchmarks/Polybench/utilities )
+list(APPEND CFLAGS   -ffp-contract=off)
+list(APPEND CXXFLAGS -ffp-contract=off)
  set(PROG gemver)
  list(APPEND CFLAGS -I ${CMAKE_SOURCE_DIR}/${POLYBENCH_UTILS} -DPOLYBENCH_DUMP_ARRAYS)
  set(HASH_PROGRAM_OUTPUT 1)
diff --git a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/gemver/Makefile 
b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/gemver/Makefile
index 1e16b4d..3c307f6 100644
--- a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/gemver/Makefile
+++ b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/gemver/Makefile
@@ -4,6 +4,9 @@ POLYBENCH_UTILS = SingleSource/Benchmarks/Polybench/utilities
  PROG          = gemver
  CFLAGS        += -I $(PROJ_SRC_ROOT)/$(POLYBENCH_UTILS) -DPOLYBENCH_DUMP_ARRAYS

+CFLAGS   += -ffp-contract=off
+CXXFLAGS += -ffp-contract=off
+
  HASH_PROGRAM_OUTPUT = 1

  ifeq ($(ARCH),XCore)
diff --git a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/gesummv/CMakeLists.txt 
b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/gesummv/CMakeLists.txt
index b48cf41..137d6ee 100644
--- a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/gesummv/CMakeLists.txt
+++ b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/gesummv/CMakeLists.txt
@@ -1,4 +1,6 @@
  set(POLYBENCH_UTILS SingleSource/Benchmarks/Polybench/utilities )
+list(APPEND CFLAGS   -ffp-contract=off)
+list(APPEND CXXFLAGS -ffp-contract=off)
  set(PROG gesummv)
  list(APPEND CFLAGS -I ${CMAKE_SOURCE_DIR}/${POLYBENCH_UTILS} -DPOLYBENCH_DUMP_ARRAYS)
  if(DEFINED SMALL_PROBLEM_SIZE)
diff --git a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/gesummv/Makefile 
b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/gesummv/Makefile
index 0139264..934577e 100644
--- a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/gesummv/Makefile
+++ b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/gesummv/Makefile
@@ -12,6 +12,9 @@ XCORE_TARGET_NEEDS_MEMORY := 256
  endif
  endif

+CFLAGS   += -ffp-contract=off
+CXXFLAGS += -ffp-contract=off
+
  HASH_PROGRAM_OUTPUT = 1

  include $(LEVEL)/SingleSource/Makefile.singlesrc
diff --git a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/mvt/CMakeLists.txt 
b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/mvt/CMakeLists.txt
index 005672c..b855fbe 100644
--- a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/mvt/CMakeLists.txt
+++ b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/mvt/CMakeLists.txt
@@ -1,4 +1,6 @@
  set(POLYBENCH_UTILS SingleSource/Benchmarks/Polybench/utilities )
+list(APPEND CFLAGS   -ffp-contract=off)
+list(APPEND CXXFLAGS -ffp-contract=off)
  set(PROG mvt)
  list(APPEND CFLAGS -I ${CMAKE_SOURCE_DIR}/${POLYBENCH_UTILS} -DPOLYBENCH_DUMP_ARRAYS)
  set(HASH_PROGRAM_OUTPUT 1)
diff --git a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/mvt/Makefile 
b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/mvt/Makefile
index 0ea2367..eecd77b 100644
--- a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/mvt/Makefile
+++ b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/mvt/Makefile
@@ -4,6 +4,9 @@ POLYBENCH_UTILS = SingleSource/Benchmarks/Polybench/utilities
  PROG          = mvt
  CFLAGS        += -I $(PROJ_SRC_ROOT)/$(POLYBENCH_UTILS) -DPOLYBENCH_DUMP_ARRAYS

+CFLAGS   += -ffp-contract=off
+CXXFLAGS += -ffp-contract=off
+
  HASH_PROGRAM_OUTPUT = 1

  ifeq ($(ARCH),XCore)
diff --git a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/symm/CMakeLists.txt 
b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/symm/CMakeLists.txt
index 2de62dd..17dab7a 100644
--- a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/symm/CMakeLists.txt
+++ b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/symm/CMakeLists.txt
@@ -1,4 +1,6 @@
  set(POLYBENCH_UTILS SingleSource/Benchmarks/Polybench/utilities )
+list(APPEND CFLAGS   -ffp-contract=off)
+list(APPEND CXXFLAGS -ffp-contract=off)
  set(PROG symm)
  list(APPEND CFLAGS -I ${CMAKE_SOURCE_DIR}/${POLYBENCH_UTILS} -DPOLYBENCH_DUMP_ARRAYS)
  if(ARCH STREQUAL "Mips")
diff --git a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/symm/Makefile 
b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/symm/Makefile
index 19e9a73..4c3d354 100644
--- a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/symm/Makefile
+++ b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/symm/Makefile
@@ -12,6 +12,9 @@ ifdef SMALL_PROBLEM_SIZE
  CFLAGS        += -DSMALL_DATASET
  endif

+CFLAGS   += -ffp-contract=off
+CXXFLAGS += -ffp-contract=off
+
  HASH_PROGRAM_OUTPUT = 1

  include $(LEVEL)/SingleSource/Makefile.singlesrc
diff --git a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/trisolv/CMakeLists.txt 
b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/trisolv/CMakeLists.txt
index 4faf66c..d70b3f1 100644
--- a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/trisolv/CMakeLists.txt
+++ b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/trisolv/CMakeLists.txt
@@ -1,4 +1,6 @@
  set(POLYBENCH_UTILS SingleSource/Benchmarks/Polybench/utilities )
+list(APPEND CFLAGS   -ffp-contract=off)
+list(APPEND CXXFLAGS -ffp-contract=off)
  set(PROG trisolv)
  list(APPEND CFLAGS -I ${CMAKE_SOURCE_DIR}/${POLYBENCH_UTILS} -DPOLYBENCH_DUMP_ARRAYS)
  set(HASH_PROGRAM_OUTPUT 1)
diff --git a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/trisolv/Makefile 
b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/trisolv/Makefile
index 2f2dde7..c751fd8 100644
--- a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/trisolv/Makefile
+++ b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/trisolv/Makefile
@@ -4,6 +4,9 @@ POLYBENCH_UTILS = SingleSource/Benchmarks/Polybench/utilities
  PROG          = trisolv
  CFLAGS        += -I $(PROJ_SRC_ROOT)/$(POLYBENCH_UTILS) -DPOLYBENCH_DUMP_ARRAYS

+CFLAGS   += -ffp-contract=off
+CXXFLAGS += -ffp-contract=off
+
  HASH_PROGRAM_OUTPUT = 1

  ifeq ($(ARCH),XCore)
diff --git a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/trmm/CMakeLists.txt 
b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/trmm/CMakeLists.txt
index 55363fd..d9bc281 100644
--- a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/trmm/CMakeLists.txt
+++ b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/trmm/CMakeLists.txt
@@ -1,4 +1,6 @@
  set(POLYBENCH_UTILS SingleSource/Benchmarks/Polybench/utilities )
+list(APPEND CFLAGS   -ffp-contract=off)
+list(APPEND CXXFLAGS -ffp-contract=off)
  set(PROG trmm)
  list(APPEND CFLAGS -I ${CMAKE_SOURCE_DIR}/${POLYBENCH_UTILS} -DPOLYBENCH_DUMP_ARRAYS)
  if(DEFINED SMALL_PROBLEM_SIZE)
diff --git a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/trmm/Makefile 
b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/trmm/Makefile
index e0429bc..237050a 100644
--- a/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/trmm/Makefile
+++ b/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/trmm/Makefile
@@ -8,6 +8,9 @@ ifdef SMALL_PROBLEM_SIZE
  CFLAGS        += -DSMALL_DATASET
  endif

+CFLAGS   += -ffp-contract=off
+CXXFLAGS += -ffp-contract=off
+
  HASH_PROGRAM_OUTPUT = 1

  include $(LEVEL)/SingleSource/Makefile.singlesrc
diff --git 
a/SingleSource/Benchmarks/Polybench/linear-algebra/solvers/gramschmidt/CMakeLists.txt 
b/SingleSource/Benchmarks/Polybench/linear-algebra/solvers/gramschmidt/CMakeLists.txt
index a0c960f..a9744b3 100644
--- a/SingleSource/Benchmarks/Polybench/linear-algebra/solvers/gramschmidt/CMakeLists.txt
+++ b/SingleSource/Benchmarks/Polybench/linear-algebra/solvers/gramschmidt/CMakeLists.txt
@@ -1,4 +1,6 @@
  set(POLYBENCH_UTILS SingleSource/Benchmarks/Polybench/utilities )
+list(APPEND CFLAGS   -ffp-contract=off)
+list(APPEND CXXFLAGS -ffp-contract=off)
  set(PROG gramschmidt)
  list(APPEND CFLAGS -I ${CMAKE_SOURCE_DIR}/${POLYBENCH_UTILS} -DPOLYBENCH_DUMP_ARRAYS)
  if(DEFINED SMALL_PROBLEM_SIZE)
diff --git a/SingleSource/Benchmarks/Polybench/linear-algebra/solvers/gramschmidt/Makefile 
b/SingleSource/Benchmarks/Polybench/linear-algebra/solvers/gramschmidt/Makefile
index 5bad2d7..46866c9 100644
--- a/SingleSource/Benchmarks/Polybench/linear-algebra/solvers/gramschmidt/Makefile
+++ b/SingleSource/Benchmarks/Polybench/linear-algebra/solvers/gramschmidt/Makefile
@@ -8,6 +8,9 @@ ifdef SMALL_PROBLEM_SIZE
  CFLAGS += -DSMALL_DATASET
  endif

+CFLAGS   += -ffp-contract=off
+CXXFLAGS += -ffp-contract=off
+
  HASH_PROGRAM_OUTPUT = 1

  include $(LEVEL)/SingleSource/Makefile.singlesrc


More information about the cfe-dev mailing list