mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-30 15:10:33 +00:00
Fix build error due to unsigned compare >= 0 in r263008 (NFC)
Fixes error from building with clang: /usr/local/google/home/tejohnson/llvm/llvm_15/lib/Target/AMDGPU/InstPrinter/AMDGPUInstPrinter.cpp:407:12: error: comparison of unsigned expression >= 0 is always true [-Werror,-Wtautological-compare] if ((Imm >= 0x000) && (Imm <= 0x0ff)) { ~~~ ^ ~~~~~ git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263014 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6ed4786900
commit
9925f81075
@ -404,7 +404,7 @@ void AMDGPUInstPrinter::printOperandAndMods(const MCInst *MI, unsigned OpNo,
|
||||
void AMDGPUInstPrinter::printDPPCtrlOperand(const MCInst *MI, unsigned OpNo,
|
||||
raw_ostream &O) {
|
||||
unsigned Imm = MI->getOperand(OpNo).getImm();
|
||||
if ((Imm >= 0x000) && (Imm <= 0x0ff)) {
|
||||
if (Imm <= 0x0ff) {
|
||||
O << " quad_perm:";
|
||||
printU8ImmDecOperand(MI, OpNo, O);
|
||||
} else if ((Imm >= 0x101) && (Imm <= 0x10f)) {
|
||||
|
Loading…
Reference in New Issue
Block a user