aboutsummaryrefslogtreecommitdiff
path: root/binutils/testsuite/binutils-all/mips
diff options
context:
space:
mode:
authorYunQiang Su <yunqiang.su@cipunited.com>2023-05-10 21:22:41 +0800
committerYunQiang Su <yunqiang.su@cipunited.com>2023-06-05 11:00:15 +0800
commitcb81e84c72933a7fad10b75b7e270d92d8d65251 (patch)
tree164fe3a2e1f66a0a1ac49327bd465aff68ead0ea /binutils/testsuite/binutils-all/mips
parentffc528aed56b9e2c171137da28690a9bb6861b0b (diff)
downloadbinutils-cb81e84c72933a7fad10b75b7e270d92d8d65251.zip
binutils-cb81e84c72933a7fad10b75b7e270d92d8d65251.tar.gz
binutils-cb81e84c72933a7fad10b75b7e270d92d8d65251.tar.bz2
MIPS: fix -gnuabi64 testsuite
Test on: mips64-linux-gnuabi64 mips64el-linux-gnuabi64 mipsisa64-linux-gnuabi64 mipsisa64el-linux-gnuabi64 mipsisa64r2-linux-gnuabi64 mipsisa64r2el-linux-gnuabi64 mipsisa64r6-linux-gnuabi64 mipsisa64r6el-linux-gnuabi64
Diffstat (limited to 'binutils/testsuite/binutils-all/mips')
-rw-r--r--binutils/testsuite/binutils-all/mips/mips.exp19
1 files changed, 19 insertions, 0 deletions
diff --git a/binutils/testsuite/binutils-all/mips/mips.exp b/binutils/testsuite/binutils-all/mips/mips.exp
index 3b7bc29..bd2a2f7 100644
--- a/binutils/testsuite/binutils-all/mips/mips.exp
+++ b/binutils/testsuite/binutils-all/mips/mips.exp
@@ -152,6 +152,25 @@ set abi_ldflags(eabi) ""
# Override as needed.
if {[istarget *-*-openbsd*] } {
set irixemul 0
+} elseif { [istarget mips*64*-*-linux*-gnuabi64] } {
+ set abi_asflags(o32) -32
+ set abi_asflags(o32l) "-32 -march=from-abi"
+ set abi_asflags(n32) "-n32"
+ set abi_asflags(n32l) "-n32 -march=from-abi"
+ set abi_asflags(n64) ""
+ set abi_asflags(n64l) "-march=from-abi -64"
+ if [istarget *el-*-*] {
+ set abi_ldflags(o32) -melf32ltsmip
+ set abi_ldflags(o32l) -melf32ltsmip
+ set abi_ldflags(n32) -melf32ltsmipn32
+ set abi_ldflags(n32l) -melf32ltsmipn32
+ } else {
+ set abi_ldflags(o32) -melf32btsmip
+ set abi_ldflags(o32l) -melf32btsmip
+ set abi_ldflags(n32) -melf32btsmipn32
+ set abi_ldflags(n32l) -melf32btsmipn32
+ }
+ set irixemul 0
} elseif { [istarget mips*64*-*-linux*] } {
set abi_asflags(o32) -32
set abi_asflags(o32l) "-32 -march=from-abi"