[llvm-bugs] [Bug 39640] New: MachineOperand TargetFlags truncation
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Nov 12 12:35:03 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=39640
Bug ID: 39640
Summary: MachineOperand TargetFlags truncation
Product: libraries
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Common Code Generator Code
Assignee: unassignedbugs at nondot.org
Reporter: marksl at synopsys.com
CC: llvm-bugs at lists.llvm.org
/// Subregister number for MO_Register. A value of 0 indicates the
/// MO_Register has no subReg.
///
/// For all other kinds of operands, this field holds target-specific flags.
unsigned SubReg_TargetFlags : 12;
We have 12 bits for the field but are using "unsigned char" for setter values:
/// Replace this operand with a target index.
void ChangeToTargetIndex(unsigned Idx, int64_t Offset,
unsigned char TargetFlags = 0);
static MachineOperand CreateMBB(MachineBasicBlock *MBB,
unsigned char TargetFlags = 0) {
static MachineOperand CreateCPI(unsigned Idx, int Offset,
unsigned char TargetFlags = 0) {
static MachineOperand CreateTargetIndex(unsigned Idx, int64_t Offset,
unsigned char TargetFlags = 0) {
And so forth
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181112/08a37604/attachment-0001.html>
More information about the llvm-bugs
mailing list