From 65a78f28e3a970c0c20f9bac9e1ae3980ae23e0a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 27 Oct 2002 21:16:44 +0000 Subject: [PATCH] Add instruction definitions for mov r, imm instructions git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4296 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86InstrInfo.def | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/Target/X86/X86InstrInfo.def b/lib/Target/X86/X86InstrInfo.def index 5ba0e6f12f5..1ddd32a9adc 100644 --- a/lib/Target/X86/X86InstrInfo.def +++ b/lib/Target/X86/X86InstrInfo.def @@ -31,8 +31,14 @@ I(NOOP , "nop", 0, 0) // nop 90 // Miscellaneous instructions I(RET , "ret", MIF::RET, 0) // ret CB -I(ADDrr8 , "add", 0, 0) // R8 += R8 00/r -I(ADDrr16 , "add", 0, 0) // R16 += R16 01/r +// Move instructions +I(MOVir8 , "movb", 0, 0) // R = imm8 B0+ rb +I(MOVir16 , "movw", 0, 0) // R = imm16 B8+ rw +I(MOVir32 , "movl", 0, 0) // R = imm32 B8+ rd + +// Arithmetic instructions +I(ADDrr8 , "addb", 0, 0) // R8 += R8 00/r +I(ADDrr16 , "addw", 0, 0) // R16 += R16 01/r I(ADDrr32 , "addl", 0, 0) // R32 += R32 02/r -- 2.34.1