[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
Fri Mar 22 09:36:07 PDT 2019
mstojanovic updated this revision to Diff 191896.
mstojanovic added a comment.
Yes, I could also reproduce it on `mips64r2`. The patch is updated with `-mabi=64`.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59612/new/
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 (-mabi=n64, $(findstring -mabi=n64, $(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.191896.patch
Type: text/x-patch
Size: 928 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190322/91dc7e7e/attachment.bin>
More information about the llvm-commits
mailing list