summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2016-03-09 14:58:23 +0000
committerTeresa Johnson <tejohnson@google.com>2016-03-09 14:58:23 +0000
commite50b23c67f320d42e1a83f1b428bd5b319d7cd35 (patch)
tree8e4f22cfedd539b6c6ed6fd01bd6f4049370c988 /llvm
parent972b236c304f5a6e5beded05f31a6a9bd52a3adc (diff)
downloadbcm5719-llvm-e50b23c67f320d42e1a83f1b428bd5b319d7cd35.tar.gz
bcm5719-llvm-e50b23c67f320d42e1a83f1b428bd5b319d7cd35.zip
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)) { ~~~ ^ ~~~~~ llvm-svn: 263014
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Target/AMDGPU/InstPrinter/AMDGPUInstPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/InstPrinter/AMDGPUInstPrinter.cpp b/llvm/lib/Target/AMDGPU/InstPrinter/AMDGPUInstPrinter.cpp
index fafa7e51929..f5597f1a88a 100644
--- a/llvm/lib/Target/AMDGPU/InstPrinter/AMDGPUInstPrinter.cpp
+++ b/llvm/lib/Target/AMDGPU/InstPrinter/AMDGPUInstPrinter.cpp
@@ -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)) {
OpenPOWER on IntegriCloud