aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-10-27 21:16:44 +0000
committerChris Lattner <sabre@nondot.org>2002-10-27 21:16:44 +0000
commit65a78f28e3a970c0c20f9bac9e1ae3980ae23e0a (patch)
tree6490742a9413ac95e63a0f98cad3074b548863bd
parente8b5413e5d0c7c0fc5b384e975c4ca87f4c00699 (diff)
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
-rw-r--r--lib/Target/X86/X86InstrInfo.def10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/Target/X86/X86InstrInfo.def b/lib/Target/X86/X86InstrInfo.def
index 5ba0e6f12f..1ddd32a9ad 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