[PATCH] D120451: [sancov] Add SPARC support for getPreviousInstructionPc.
Xiaodong Liu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 23 19:52:45 PST 2022
XiaodongLoong created this revision.
Herald added subscribers: fedor.sergeev, jyknight.
XiaodongLoong requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
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
@@ -694,7 +694,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.410997.patch
Type: text/x-patch
Size: 452 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220224/0b0e1d4b/attachment.bin>
More information about the llvm-commits
mailing list