"nop{w}\t$zero", [], IIC_NOP>, TB, OpSize16;
def NOOPL : I<0x1f, MRMXm, (outs), (ins i32mem:$zero),
"nop{l}\t$zero", [], IIC_NOP>, TB, OpSize32;
+ // Also allow register so we can assemble/disassemble
+ def NOOPWr : I<0x1f, MRMXr, (outs), (ins GR16:$zero),
+ "nop{w}\t$zero", [], IIC_NOP>, TB, OpSize16;
+ def NOOPLr : I<0x1f, MRMXr, (outs), (ins GR32:$zero),
+ "nop{l}\t$zero", [], IIC_NOP>, TB, OpSize32;
}
// CHECK: encoding: [0x0f,0x1f,0x05,0x78,0x56,0x34,0x12]
nopl 0x12345678
+// CHECK: nopw %ax
+// CHECK: encoding: [0x66,0x0f,0x1f,0xc0]
+ nopw %ax
+
+// CHECK: nopl %eax
+// CHECK: encoding: [0x0f,0x1f,0xc0]
+ nopl %eax
+
// CHECK: nop
// CHECK: encoding: [0x90]
nop