aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-11-17 20:33:12 +0000
committerChris Lattner <sabre@nondot.org>2002-11-17 20:33:12 +0000
commite7236ffa945f65c7ba62ffd3ebbb755e8ab0df42 (patch)
tree1b5e6e2cbbbf9346b0b1f75aadaf154283b0d6bb
parent43189d17c341a462892f72a00069961fde066daf (diff)
Add load/store instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4711 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/X86/X86InstrInfo.def10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/Target/X86/X86InstrInfo.def b/lib/Target/X86/X86InstrInfo.def
index 5c4a963d16..21c83aa9c0 100644
--- a/lib/Target/X86/X86InstrInfo.def
+++ b/lib/Target/X86/X86InstrInfo.def
@@ -37,6 +37,9 @@ I(NOOP , "nop", 0, X86II::Void) // nop 90
I(RET , "ret", M_RET_FLAG, X86II::Void) // ret CB
I(JMP , "jmp", M_BRANCH_FLAG, X86II::Void) // jmp foo EB|E9 cb|w
+// Misc instructions
+I(LEAVE , "leave", 0, 0) // leave C9
+
// Move instructions
I(MOVrr8 , "movb", 0, 0) // R8 = R8 88/r
I(MOVrr16 , "movw", 0, 0) // R16 = R16 89/r
@@ -44,7 +47,12 @@ I(MOVrr32 , "movl", 0, 0) // R32 = R32 89/r
I(MOVir8 , "movb", 0, 0) // R8 = imm8 B0+ rb
I(MOVir16 , "movw", 0, 0) // R16 = imm16 B8+ rw
I(MOVir32 , "movl", 0, 0) // R32 = imm32 B8+ rd
-I(LEAVE , "leave", 0, 0) // leave C9
+I(MOVmr8 , "movb", 0, 0) // R8 = [mem] 8A/r
+I(MOVmr16 , "movw", 0, 0) // R16 = [mem] 8B/r
+I(MOVmr32 , "movl", 0, 0) // R32 = [mem] 8B/r
+I(MOVrm8 , "movb", 0, 0) // [mem] = R8 88/r
+I(MOVrm16 , "movw", 0, 0) // [mem] = R16 89/r
+I(MOVrm32 , "movl", 0, 0) // [mem] = R32 89/r
// Arithmetic instructions
I(ADDrr8 , "addb", 0, 0) // R8 += R8 00/r