[PATCH] D59612: [test-suite][mips] Fix compile options for tramp3d-v4 test

Miloš Stojanović via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 20 14:08:59 PDT 2019


mstojanovic created this revision.
mstojanovic added reviewers: atanasyan, petarj, zoran.jovanovic.
Herald added subscribers: jdoerfert, arichardson, mgorny, sdardis.

The -mxgot flag was negatively effecting certain micromips builds. This patch narrows its use to to only mips64 targets.


https://reviews.llvm.org/D59612

Files:
  MultiSource/Benchmarks/tramp3d-v4/CMakeLists.txt
  MultiSource/Benchmarks/tramp3d-v4/Makefile


Index: MultiSource/Benchmarks/tramp3d-v4/Makefile
===================================================================
--- MultiSource/Benchmarks/tramp3d-v4/Makefile
+++ MultiSource/Benchmarks/tramp3d-v4/Makefile
@@ -10,7 +10,7 @@
 endif
 FP_ABSTOLERANCE :=  0.0000001
 
-ifeq ($(ARCH),Mips)
+ifeq (-mcpu=mips64r6, $(findstring -mcpu=mips64r6, $(TARGET_FLAGS)))
 # Mips needs a bit more compilation time when Mips64r6 and MSA are used
 # together.
 RUNTIMELIMIT := 700
Index: MultiSource/Benchmarks/tramp3d-v4/CMakeLists.txt
===================================================================
--- MultiSource/Benchmarks/tramp3d-v4/CMakeLists.txt
+++ MultiSource/Benchmarks/tramp3d-v4/CMakeLists.txt
@@ -5,7 +5,7 @@
 else()
   set(RUN_OPTIONS --cartvis 1.0 0.0 --rhomin 1e-8 -n 10 --domain 32 32 32)
 endif()
-if("${ARCH}" STREQUAL "Mips")
+if(MIPS_IS_MIPS64_ENABLED)
 	list(APPEND CXXFLAGS -mxgot)
 endif()
 set(FP_ABSTOLERANCE 0.0000001)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59612.191576.patch
Type: text/x-patch
Size: 938 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190320/4e114427/attachment.bin>


More information about the llvm-commits mailing list