mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-22 00:37:49 +00:00
Translate bit operations to English.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34868 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fa83404afa
commit
b6431da7be
@ -1461,7 +1461,8 @@ namespace {
|
||||
|
||||
const IntegerType *Ty = CI->getType();
|
||||
LV = LT;
|
||||
add(O.LHS, ConstantInt::get(Ty->getMask().lshr(1)),
|
||||
add(O.LHS, ConstantInt::get(
|
||||
APInt::getSignedMaxValue(Ty->getBitWidth())),
|
||||
ICmpInst::ICMP_UGT);
|
||||
} else if (LV == SGT && CI->getValue().isPositive()) {
|
||||
// i8 %x s> 5 implies %x > 5 and %x u< 128
|
||||
|
Loading…
x
Reference in New Issue
Block a user