[PATCH] D120451: [sancov] Add SPARC support for getPreviousInstructionPc.
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 27 11:11:03 PST 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf6cb59d35f8c: [sancov] Add SPARC support for getPreviousInstructionPc (authored by XiaodongLoong, committed by MaskRay).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D120451/new/
https://reviews.llvm.org/D120451
Files:
llvm/tools/sancov/sancov.cpp
Index: llvm/tools/sancov/sancov.cpp
===================================================================
--- llvm/tools/sancov/sancov.cpp
+++ llvm/tools/sancov/sancov.cpp
@@ -695,7 +695,7 @@
Triple TheTriple) {
if (TheTriple.isARM())
return (PC - 3) & (~1);
- if (TheTriple.isMIPS())
+ if (TheTriple.isMIPS() || TheTriple.isSPARC())
return PC - 8;
if (TheTriple.isRISCV())
return PC - 2;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120451.411694.patch
Type: text/x-patch
Size: 452 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220227/404a1598/attachment.bin>
More information about the llvm-commits
mailing list