[PATCH] D120197: [libunwind] Further fix for 32-bit PowerPC processors without AltiVec

Brad Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 19 16:40:09 PST 2022


brad created this revision.
brad added reviewers: Bdragon28, MaskRay, luporl, compnerd, jhibbits, libunwind.
brad added projects: PowerPC, LLVM, libunwind.
Herald added subscribers: steven.zhang, shchenz, krytarowski, nemanjai.
Herald added 1 blocking reviewer(s): libunwind.
brad requested review of this revision.

OpenBSD had a local patch to fix libunwind with 32-bit PowerPC processors without AltiVec support (Motorola G3). https://reviews.llvm.org/D91906 eliminated almost all of our patch, but merging forward to 13 there was one more piece which I am presenting here.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D120197

Files:
  libunwind/src/UnwindRegistersSave.S


Index: libunwind/src/UnwindRegistersSave.S
===================================================================
--- libunwind/src/UnwindRegistersSave.S
+++ libunwind/src/UnwindRegistersSave.S
@@ -603,9 +603,11 @@
   stw     30,128(3)
   stw     31,132(3)
 
+#if defined(__ALTIVEC__)
   // save VRSave register
   mfspr   0, 256
   stw     0, 156(3)
+#endif
   // save CR registers
   mfcr    0
   stw     0, 136(3)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120197.410116.patch
Type: text/x-patch
Size: 414 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220220/60170731/attachment.bin>


More information about the llvm-commits mailing list