[PATCH] D50245: [libunwind][mips] Modify the __mips_fpr macro check
Stefan Maksimovic via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 3 05:24:47 PDT 2018
smaksimovic created this revision.
smaksimovic added a reviewer: atanasyan.
Herald added subscribers: chrib, arichardson, sdardis.
The __mips_fpr macro can take the value of 0 as well, change to account for that case.
https://reviews.llvm.org/D50245
Files:
src/UnwindRegistersRestore.S
src/UnwindRegistersSave.S
Index: src/UnwindRegistersSave.S
===================================================================
--- src/UnwindRegistersSave.S
+++ src/UnwindRegistersSave.S
@@ -168,7 +168,7 @@
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)
Index: src/UnwindRegistersRestore.S
===================================================================
--- src/UnwindRegistersRestore.S
+++ src/UnwindRegistersRestore.S
@@ -815,7 +815,7 @@
.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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50245.158984.patch
Type: text/x-patch
Size: 794 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180803/e4d32b1d/attachment.bin>
More information about the llvm-commits
mailing list