aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Target/PowerPC/PPC32AsmPrinter.cpp2
-rw-r--r--lib/Target/PowerPC/PPCAsmPrinter.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/PowerPC/PPC32AsmPrinter.cpp b/lib/Target/PowerPC/PPC32AsmPrinter.cpp
index 03fc210984..8119fd3094 100644
--- a/lib/Target/PowerPC/PPC32AsmPrinter.cpp
+++ b/lib/Target/PowerPC/PPC32AsmPrinter.cpp
@@ -89,7 +89,7 @@ namespace {
void printU5ImmOperand(const MachineInstr *MI, unsigned OpNo,
MVT::ValueType VT) {
unsigned char value = MI->getOperand(OpNo).getImmedValue();
- assert(0 <= value && 31 >= value && "Invalid u5imm argument!");
+ assert(value <= 31 && "Invalid u5imm argument!");
O << (unsigned int)value;
}
void printU16ImmOperand(const MachineInstr *MI, unsigned OpNo,
diff --git a/lib/Target/PowerPC/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp
index 03fc210984..8119fd3094 100644
--- a/lib/Target/PowerPC/PPCAsmPrinter.cpp
+++ b/lib/Target/PowerPC/PPCAsmPrinter.cpp
@@ -89,7 +89,7 @@ namespace {
void printU5ImmOperand(const MachineInstr *MI, unsigned OpNo,
MVT::ValueType VT) {
unsigned char value = MI->getOperand(OpNo).getImmedValue();
- assert(0 <= value && 31 >= value && "Invalid u5imm argument!");
+ assert(value <= 31 && "Invalid u5imm argument!");
O << (unsigned int)value;
}
void printU16ImmOperand(const MachineInstr *MI, unsigned OpNo,