[PATCH] D142461: [SPARC] Lower BR_CC to BPr on 64-bit target whenever possible
Koakuma via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 24 05:36:42 PST 2023
koakuma added inline comments.
================
Comment at: llvm/lib/Target/Sparc/MCTargetDesc/SparcAsmBackend.cpp:45
case Sparc::fixup_sparc_br16_2:
- return (Value >> 2) & 0xc000;
+ return ((Value >> 2) & 0xc000) << 6;
----------------
Not really sure if this is the proper way to do it, but I've found that without the left shift, the integrated assembler would misplace the two upper bits of BPr branch displacements.
Comments?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142461/new/
https://reviews.llvm.org/D142461
More information about the llvm-commits
mailing list