// Return true if extending this immediate is profitable and the value
// can fit in a 32-bit signed field.
- if (isConstExtProfitable(Node) && isInt<32>(v))
- return true;
- else
- return false;
+ return isConstExtProfitable(Node) && isInt<32>(v);
}
}]>;
// Return true if extending this immediate is profitable and the value
// can fit in a 32-bit signed field.
- if (isConstExtProfitable(Node) && isInt<32>(v))
- return true;
- else
- return false;
+ return isConstExtProfitable(Node) && isInt<32>(v);
}
}]>;
// Return true if extending this immediate is profitable and the value
// can fit in a 32-bit unsigned field.
- if (isConstExtProfitable(Node) && isInt<32>(v))
- return true;
- else
- return false;
+ return isConstExtProfitable(Node) && isInt<32>(v);
}
}]>;
// Return true if extending this immediate is profitable and the value
// can fit in a 32-bit signed field.
- if (isConstExtProfitable(Node) && isInt<32>(v))
- return true;
- else
- return false;
+ return isConstExtProfitable(Node) && isInt<32>(v);
}
}]>;
// Return true if extending this immediate is profitable and the value
// can't fit in a 16-bit signed field. This is required to avoid
// unnecessary constant extenders.
- if (isConstExtProfitable(Node) && !isInt<16>(v))
- return true;
- else
- return false;
+ return isConstExtProfitable(Node) && !isInt<16>(v);
}
}]>;
// Return true if extending this immediate is profitable and the value
// can fit in a 32-bit unsigned field.
- if (isConstExtProfitable(Node) && isInt<32>(v))
- return true;
- else
- return false;
+ return isConstExtProfitable(Node) && isInt<32>(v);
}
}]>;
// Return true if extending this immediate is profitable and the value
// can't fit in a 16-bit signed field. This is required to avoid
// unnecessary constant extenders.
- if (isConstExtProfitable(Node) && !isInt<16>(v))
- return true;
- else
- return false;
+ return isConstExtProfitable(Node) && !isInt<16>(v);
}
}]>;
// Return true if extending this immediate is profitable and the value
// can't fit in a 10-bit signed field. This is required to avoid
// unnecessary constant extenders.
- if (isConstExtProfitable(Node) && !isInt<10>(v))
- return true;
- else
- return false;
+ return isConstExtProfitable(Node) && !isInt<10>(v);
}
}]>;
// Return true if extending this immediate is profitable and the value
// can fit in a 32-bit signed field.
- if (isConstExtProfitable(Node) && isInt<32>(v))
- return true;
- else
- return false;
+ return isConstExtProfitable(Node) && isInt<32>(v);
}
}]>;
// Return true if extending this immediate is profitable and the low 1 bit
// is zero (2-byte aligned).
- if (isConstExtProfitable(Node) && isInt<32>(v) && ((v % 2) == 0))
- return true;
- else
- return false;
+ return isConstExtProfitable(Node) && isInt<32>(v) && ((v % 2) == 0);
}
}]>;
// Return true if extending this immediate is profitable and the low 2-bits
// are zero (4-byte aligned).
- if (isConstExtProfitable(Node) && isInt<32>(v) && ((v % 4) == 0))
- return true;
- else
- return false;
+ return isConstExtProfitable(Node) && isInt<32>(v) && ((v % 4) == 0);
}
}]>;
// Return true if extending this immediate is profitable and the low 3-bits
// are zero (8-byte aligned).
- if (isConstExtProfitable(Node) && isInt<32>(v) && ((v % 8) == 0))
- return true;
- else
- return false;
+ return isConstExtProfitable(Node) && isInt<32>(v) && ((v % 8) == 0);
}
}]>;