summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Maksimovic <stefan.maksimovic@mips.com>2018-08-16 08:47:43 +0000
committerStefan Maksimovic <stefan.maksimovic@mips.com>2018-08-16 08:47:43 +0000
commit944677cd2811dde87aa4f3ba6809ff509f58cf67 (patch)
tree5d8886c1f935e4b1c61da169bdbe7dcbd6b81108
parenta8ac4308aa1b5dc656666b07a04808d860aef4c5 (diff)
downloadbcm5719-llvm-944677cd2811dde87aa4f3ba6809ff509f58cf67.tar.gz
bcm5719-llvm-944677cd2811dde87aa4f3ba6809ff509f58cf67.zip
[libunwind][mips] Modify the __mips_fpr macro check
The __mips_fpr macro can take the value of 0 as well, change to account for that case. Differential Revision: https://reviews.llvm.org/D50245 llvm-svn: 339848
-rw-r--r--libunwind/src/UnwindRegistersRestore.S2
-rw-r--r--libunwind/src/UnwindRegistersSave.S2
2 files changed, 2 insertions, 2 deletions
diff --git a/libunwind/src/UnwindRegistersRestore.S b/libunwind/src/UnwindRegistersRestore.S
index d425d1c7d20..b44c460bd5b 100644
--- a/libunwind/src/UnwindRegistersRestore.S
+++ b/libunwind/src/UnwindRegistersRestore.S
@@ -815,7 +815,7 @@ DEFINE_LIBUNWIND_PRIVATE_FUNCTION(_ZN9libunwind18Registers_mips_o326jumptoEv)
.set noreorder
.set nomacro
#ifdef __mips_hard_float
-#if __mips_fpr == 32
+#if __mips_fpr != 64
ldc1 $f0, (4 * 36 + 8 * 0)($4)
ldc1 $f2, (4 * 36 + 8 * 2)($4)
ldc1 $f4, (4 * 36 + 8 * 4)($4)
diff --git a/libunwind/src/UnwindRegistersSave.S b/libunwind/src/UnwindRegistersSave.S
index 07db14b373e..0fb2c196af2 100644
--- a/libunwind/src/UnwindRegistersSave.S
+++ b/libunwind/src/UnwindRegistersSave.S
@@ -168,7 +168,7 @@ DEFINE_LIBUNWIND_FUNCTION(unw_getcontext)
mflo $8
sw $8, (4 * 34)($4)
#ifdef __mips_hard_float
-#if __mips_fpr == 32
+#if __mips_fpr != 64
sdc1 $f0, (4 * 36 + 8 * 0)($4)
sdc1 $f2, (4 * 36 + 8 * 2)($4)
sdc1 $f4, (4 * 36 + 8 * 4)($4)
OpenPOWER on IntegriCloud