[test-suite] r356863 - [test-suite][mips] Fix compile options for tramp3d-v4 test

Simon Atanasyan via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 24 11:28:00 PDT 2019


Author: atanasyan
Date: Sun Mar 24 11:27:59 2019
New Revision: 356863

URL: http://llvm.org/viewvc/llvm-project?rev=356863&view=rev
Log:
[test-suite][mips] Fix compile options for tramp3d-v4 test

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

Patch by Miloš Stojanović.

Differential Revision: http://reviews.llvm.org/D59612

Modified:
    test-suite/trunk/MultiSource/Benchmarks/tramp3d-v4/CMakeLists.txt
    test-suite/trunk/MultiSource/Benchmarks/tramp3d-v4/Makefile

Modified: test-suite/trunk/MultiSource/Benchmarks/tramp3d-v4/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/tramp3d-v4/CMakeLists.txt?rev=356863&r1=356862&r2=356863&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/tramp3d-v4/CMakeLists.txt (original)
+++ test-suite/trunk/MultiSource/Benchmarks/tramp3d-v4/CMakeLists.txt Sun Mar 24 11:27:59 2019
@@ -5,7 +5,7 @@ if(SMALL_PROBLEM_SIZE)
 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)

Modified: test-suite/trunk/MultiSource/Benchmarks/tramp3d-v4/Makefile
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/tramp3d-v4/Makefile?rev=356863&r1=356862&r2=356863&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/tramp3d-v4/Makefile (original)
+++ test-suite/trunk/MultiSource/Benchmarks/tramp3d-v4/Makefile Sun Mar 24 11:27:59 2019
@@ -10,7 +10,7 @@ RUN_OPTIONS =  --cartvis 1.0 0.0 --rhomi
 endif
 FP_ABSTOLERANCE :=  0.0000001
 
-ifeq ($(ARCH),Mips)
+ifeq (-mabi=n64, $(findstring -mabi=n64, $(TARGET_FLAGS)))
 # Mips needs a bit more compilation time when Mips64r6 and MSA are used
 # together.
 RUNTIMELIMIT := 700




More information about the llvm-commits mailing list