mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
[AVR] Remove unsigned <= 0 checks. NFCI.
D77207 changed the bounds checks resulting in tests for positive unsigned values - dropping the superfluous check to fix gcc+Werror "error: comparison of unsigned expression >= 0 is always true [-Werror=type-limits]" warning.
This commit is contained in:
parent
e4b61f917e
commit
5e623df3e9
@ -128,21 +128,21 @@ def ioaddr8 : PatLeaf<(imm),
|
||||
[{
|
||||
uint8_t offset = Subtarget->getIORegisterOffset();
|
||||
uint64_t val = N->getZExtValue() - offset;
|
||||
return val >= 0x0 && val < 0x40;
|
||||
return val < 0x40;
|
||||
}], ioaddr_XFORM>;
|
||||
|
||||
def lowioaddr8 : PatLeaf<(imm),
|
||||
[{
|
||||
uint8_t offset = Subtarget->getIORegisterOffset();
|
||||
uint64_t val = N->getZExtValue() - offset;
|
||||
return val >= 0x0 && val < 0x20;
|
||||
return val < 0x20;
|
||||
}], ioaddr_XFORM>;
|
||||
|
||||
def ioaddr16 : PatLeaf<(imm),
|
||||
[{
|
||||
uint8_t offset = Subtarget->getIORegisterOffset();
|
||||
uint64_t val = N->getZExtValue() - offset;
|
||||
return val >= 0x0 && val < 0x3f;
|
||||
return val < 0x3f;
|
||||
}], ioaddr_XFORM>;
|
||||
|
||||
def iobitpos8 : PatLeaf<(imm),
|
||||
|
Loading…
Reference in New Issue
Block a user