In the addressing mode, simm9 is [-256, 255], not [-512, 511].
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Target/AArch64/AArch64ISelLowering.cpp | ||
---|---|---|
7440 | It would probably be better to use llvm::isInt<9>. |
Paths
| Differential D27480
[AArch64] Correct the check of simm9 in isLegalAddressingMode() ClosedPublic Authored by haicheng on Dec 6 2016, 1:18 PM.
Details Summary In the addressing mode, simm9 is [-256, 255], not [-512, 511].
Diff Detail
Event Timelinehaicheng updated this object. haicheng retitled this revision from [AArch64] Correct the check of simm9 to [AArch64] Correct the check of simm9 in isLegalAddressingMode().Dec 6 2016, 1:23 PM haicheng updated this object.
This revision is now accepted and ready to land.Dec 6 2016, 1:28 PM Closed by commit rL288876: [AArch64] Correct the check of signed 9-bit imm in isLegalAddressingMode() (authored by haicheng). · Explain WhyDec 6 2016, 5:55 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 80471 lib/Target/AArch64/AArch64ISelLowering.cpp
test/Analysis/CostModel/AArch64/gep.ll
|
It would probably be better to use llvm::isInt<9>.