Skip to content

Commit 1db9040

Browse files
committed
[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 llvm-svn: 356863
1 parent 0ee69b8 commit 1db9040

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

MultiSource/Benchmarks/tramp3d-v4/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if(SMALL_PROBLEM_SIZE)
55
else()
66
set(RUN_OPTIONS --cartvis 1.0 0.0 --rhomin 1e-8 -n 10 --domain 32 32 32)
77
endif()
8-
if("${ARCH}" STREQUAL "Mips")
8+
if(MIPS_IS_MIPS64_ENABLED)
99
list(APPEND CXXFLAGS -mxgot)
1010
endif()
1111
set(FP_ABSTOLERANCE 0.0000001)

MultiSource/Benchmarks/tramp3d-v4/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ RUN_OPTIONS = --cartvis 1.0 0.0 --rhomin 1e-8 -n 10 --domain 32 32 32
1010
endif
1111
FP_ABSTOLERANCE := 0.0000001
1212

13-
ifeq ($(ARCH),Mips)
13+
ifeq (-mabi=n64, $(findstring -mabi=n64, $(TARGET_FLAGS)))
1414
# Mips needs a bit more compilation time when Mips64r6 and MSA are used
1515
# together.
1616
RUNTIMELIMIT := 700

0 commit comments

Comments
 (0)