mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-09 05:13:01 +00:00
Rename ASM modifier trunc8, trunc16 to subreg8, subreg16.
llvm-svn: 28606
This commit is contained in:
parent
30d5eade2a
commit
4488266c46
@ -118,8 +118,8 @@ void X86ATTAsmPrinter::printOperand(const MachineInstr *MI, unsigned OpNo,
|
||||
"Virtual registers should not make it this far!");
|
||||
O << '%';
|
||||
unsigned Reg = MO.getReg();
|
||||
if (Modifier && strncmp(Modifier, "trunc", strlen("trunc")) == 0) {
|
||||
MVT::ValueType VT = (strcmp(Modifier,"trunc16") == 0)
|
||||
if (Modifier && strncmp(Modifier, "subreg", strlen("subreg")) == 0) {
|
||||
MVT::ValueType VT = (strcmp(Modifier,"subreg16") == 0)
|
||||
? MVT::i16 : MVT::i8;
|
||||
Reg = getX86SubSuperRegister(Reg, VT);
|
||||
}
|
||||
|
@ -360,11 +360,11 @@ def NOOP : I<0x90, RawFrm, (ops), "nop", []>;
|
||||
|
||||
// Truncate
|
||||
def TRUNC_GR32_GR8 : I<0x88, MRMDestReg, (ops GR8:$dst, GR32_:$src),
|
||||
"mov{b} {${src:trunc8}, $dst|$dst, ${src:trunc8}", []>;
|
||||
"mov{b} {${src:subreg8}, $dst|$dst, ${src:subreg8}", []>;
|
||||
def TRUNC_GR16_GR8 : I<0x88, MRMDestReg, (ops GR8:$dst, GR16_:$src),
|
||||
"mov{b} {${src:trunc8}, $dst|$dst, ${src:trunc8}}", []>;
|
||||
"mov{b} {${src:subreg8}, $dst|$dst, ${src:subreg8}}", []>;
|
||||
def TRUNC_GR32_GR16 : I<0x89, MRMDestReg, (ops GR16:$dst, GR32:$src),
|
||||
"mov{w} {${src:trunc16}, $dst|$dst, ${src:trunc16}}",
|
||||
"mov{w} {${src:subreg16}, $dst|$dst, ${src:subreg16}}",
|
||||
[(set GR16:$dst, (trunc GR32:$src))]>;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
@ -87,8 +87,8 @@ void X86IntelAsmPrinter::printOp(const MachineOperand &MO,
|
||||
case MachineOperand::MO_Register:
|
||||
if (MRegisterInfo::isPhysicalRegister(MO.getReg())) {
|
||||
unsigned Reg = MO.getReg();
|
||||
if (Modifier && strncmp(Modifier, "trunc", strlen("trunc")) == 0) {
|
||||
MVT::ValueType VT = (strcmp(Modifier,"trunc16") == 0)
|
||||
if (Modifier && strncmp(Modifier, "subreg", strlen("subreg")) == 0) {
|
||||
MVT::ValueType VT = (strcmp(Modifier,"subreg16") == 0)
|
||||
? MVT::i16 : MVT::i8;
|
||||
Reg = getX86SubSuperRegister(Reg, VT);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user