[PATCH] D50245: [libunwind][mips] Modify the __mips_fpr macro check

Stefan Maksimovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 16 01:48:22 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL339848: [libunwind][mips] Modify the __mips_fpr macro check (authored by smaksimovic, committed by ).
Herald added a subscriber: christof.

Changed prior to commit:
  https://reviews.llvm.org/D50245?vs=158984&id=160977#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D50245

Files:
  libunwind/trunk/src/UnwindRegistersRestore.S
  libunwind/trunk/src/UnwindRegistersSave.S


Index: libunwind/trunk/src/UnwindRegistersRestore.S
===================================================================
--- libunwind/trunk/src/UnwindRegistersRestore.S
+++ libunwind/trunk/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)
Index: libunwind/trunk/src/UnwindRegistersSave.S
===================================================================
--- libunwind/trunk/src/UnwindRegistersSave.S
+++ libunwind/trunk/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)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50245.160977.patch
Type: text/x-patch
Size: 890 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180816/d1f1db78/attachment.bin>


More information about the llvm-commits mailing list