mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Add retw and lretw instructions. Also, fix Intel syntax parsing for all
ret instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154468 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -42,3 +42,16 @@ LBB0_3:
|
||||
|
||||
// CHECK: encoding: [0x0f,0xc2,0xd1,0x01]
|
||||
cmpltps XMM2, XMM1
|
||||
|
||||
// CHECK: encoding: [0xc3]
|
||||
ret
|
||||
|
||||
// CHECK: encoding: [0xcb]
|
||||
retf
|
||||
|
||||
// CHECK: encoding: [0xc2,0x08,0x00]
|
||||
ret 8
|
||||
|
||||
// CHECK: encoding: [0xca,0x08,0x00]
|
||||
retf 8
|
||||
|
||||
|
@@ -990,3 +990,11 @@ xchgl %ecx, %eax
|
||||
// CHECK: xchgl %ecx, %eax
|
||||
// CHECK: encoding: [0x91]
|
||||
xchgl %eax, %ecx
|
||||
|
||||
// CHECK: retw
|
||||
// CHECK: encoding: [0x66,0xc3]
|
||||
retw
|
||||
|
||||
// CHECK: lretw
|
||||
// CHECK: encoding: [0x66,0xcb]
|
||||
lretw
|
||||
|
@@ -50,6 +50,9 @@
|
||||
// CHECK: ret
|
||||
ret
|
||||
|
||||
// CHECK: retw
|
||||
retw
|
||||
|
||||
// FIXME: Check that this matches SUB32ri8
|
||||
// CHECK: subl $1, %eax
|
||||
subl $1, %eax
|
||||
@@ -841,6 +844,7 @@ iretq
|
||||
lretq // CHECK: lretq # encoding: [0x48,0xcb]
|
||||
lretl // CHECK: lretl # encoding: [0xcb]
|
||||
lret // CHECK: lretl # encoding: [0xcb]
|
||||
lretw // CHECK: lretw # encoding: [0x66,0xcb]
|
||||
|
||||
// rdar://8403907
|
||||
sysret
|
||||
|
Reference in New Issue
Block a user