From 520a7f92501f8e88738ba74d290b9f01dc89af69 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 8 Sep 2009 06:03:07 +0000 Subject: [PATCH] ADd support for "lowering" the X86::MOVZX16rr8/X86::MOVZX16rm8 subreg32 modifiers. llvm-svn: 81196 --- llvm/lib/Target/X86/AsmPrinter/X86MCInstLower.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/llvm/lib/Target/X86/AsmPrinter/X86MCInstLower.cpp b/llvm/lib/Target/X86/AsmPrinter/X86MCInstLower.cpp index 7cafe83fc7a8..91047aa40a87 100644 --- a/llvm/lib/Target/X86/AsmPrinter/X86MCInstLower.cpp +++ b/llvm/lib/Target/X86/AsmPrinter/X86MCInstLower.cpp @@ -309,11 +309,18 @@ printInstructionThroughMCStreamer(const MachineInstr *MI) { // Handle the 'subreg rewriting' for the lea64_32mem operand. lower_lea64_32mem(&TmpInst, 1); break; - case X86::MOV16r0: TmpInst.setOpcode(X86::MOV32r0); lower_subreg32(&TmpInst, 0); break; + case X86::MOVZX16rr8: + TmpInst.setOpcode(X86::MOVZX32rr8); + lower_subreg32(&TmpInst, 0); + break; + case X86::MOVZX16rm8: + TmpInst.setOpcode(X86::MOVZX32rm8); + lower_subreg32(&TmpInst, 0); + break; } printInstruction(&TmpInst);