summaryrefslogtreecommitdiff
path: root/libunwind
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
commitfb2431485f7d0147951077aebd9b9b0c60864bb8 (patch)
tree89d9136a9e199f80cadbdfdf149dbe506db22ae8 /libunwind
parent73af99915b0a6c8f62d63e3829ed51a83d59e238 (diff)
[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
Diffstat (limited to 'libunwind')
-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)