mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 17:33:24 +00:00
ARM: Fix pseudo-instructions for SRS (Store Return State).
The mapping between SRS pseudo-instructions and SRS native instructions was incorrect, the correct mapping is: srsfa -> srsib srsea -> srsia srsfd -> srsdb srsed -> srsda This fixes <rdar://problem/14214734>. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185155 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0ed872cdd1
commit
a744d41a3f
@ -5185,10 +5185,10 @@ def : MnemonicAlias<"rfeed", "rfeib">;
|
||||
def : MnemonicAlias<"rfe", "rfeia">;
|
||||
|
||||
// SRS aliases
|
||||
def : MnemonicAlias<"srsfa", "srsda">;
|
||||
def : MnemonicAlias<"srsea", "srsdb">;
|
||||
def : MnemonicAlias<"srsfd", "srsia">;
|
||||
def : MnemonicAlias<"srsed", "srsib">;
|
||||
def : MnemonicAlias<"srsfa", "srsib">;
|
||||
def : MnemonicAlias<"srsea", "srsia">;
|
||||
def : MnemonicAlias<"srsfd", "srsdb">;
|
||||
def : MnemonicAlias<"srsed", "srsda">;
|
||||
def : MnemonicAlias<"srs", "srsia">;
|
||||
|
||||
// QSAX == QSUBADDX
|
||||
|
@ -2125,15 +2125,15 @@ Lforward:
|
||||
@ CHECK: srsia sp!, #2 @ encoding: [0x02,0x05,0xed,0xf8]
|
||||
@ CHECK: srsib sp!, #14 @ encoding: [0x0e,0x05,0xed,0xf9]
|
||||
|
||||
@ CHECK: srsda sp, #11 @ encoding: [0x0b,0x05,0x4d,0xf8]
|
||||
@ CHECK: srsdb sp, #10 @ encoding: [0x0a,0x05,0x4d,0xf9]
|
||||
@ CHECK: srsia sp, #9 @ encoding: [0x09,0x05,0xcd,0xf8]
|
||||
@ CHECK: srsib sp, #5 @ encoding: [0x05,0x05,0xcd,0xf9]
|
||||
@ CHECK: srsib sp, #11 @ encoding: [0x0b,0x05,0xcd,0xf9]
|
||||
@ CHECK: srsia sp, #10 @ encoding: [0x0a,0x05,0xcd,0xf8]
|
||||
@ CHECK: srsdb sp, #9 @ encoding: [0x09,0x05,0x4d,0xf9]
|
||||
@ CHECK: srsda sp, #5 @ encoding: [0x05,0x05,0x4d,0xf8]
|
||||
|
||||
@ CHECK: srsda sp!, #5 @ encoding: [0x05,0x05,0x6d,0xf8]
|
||||
@ CHECK: srsdb sp!, #5 @ encoding: [0x05,0x05,0x6d,0xf9]
|
||||
@ CHECK: srsia sp!, #5 @ encoding: [0x05,0x05,0xed,0xf8]
|
||||
@ CHECK: srsib sp!, #5 @ encoding: [0x05,0x05,0xed,0xf9]
|
||||
@ CHECK: srsia sp!, #5 @ encoding: [0x05,0x05,0xed,0xf8]
|
||||
@ CHECK: srsdb sp!, #5 @ encoding: [0x05,0x05,0x6d,0xf9]
|
||||
@ CHECK: srsda sp!, #5 @ encoding: [0x05,0x05,0x6d,0xf8]
|
||||
|
||||
@ CHECK: srsia sp, #5 @ encoding: [0x05,0x05,0xcd,0xf8]
|
||||
@ CHECK: srsia sp!, #5 @ encoding: [0x05,0x05,0xed,0xf8]
|
||||
@ -2170,14 +2170,14 @@ Lforward:
|
||||
@ CHECK: srsdb sp!, #19 @ encoding: [0x13,0x05,0x6d,0xf9]
|
||||
@ CHECK: srsia sp!, #2 @ encoding: [0x02,0x05,0xed,0xf8]
|
||||
@ CHECK: srsib sp!, #14 @ encoding: [0x0e,0x05,0xed,0xf9]
|
||||
@ CHECK: srsda sp, #11 @ encoding: [0x0b,0x05,0x4d,0xf8]
|
||||
@ CHECK: srsdb sp, #10 @ encoding: [0x0a,0x05,0x4d,0xf9]
|
||||
@ CHECK: srsia sp, #9 @ encoding: [0x09,0x05,0xcd,0xf8]
|
||||
@ CHECK: srsib sp, #5 @ encoding: [0x05,0x05,0xcd,0xf9]
|
||||
@ CHECK: srsda sp!, #5 @ encoding: [0x05,0x05,0x6d,0xf8]
|
||||
@ CHECK: srsdb sp!, #5 @ encoding: [0x05,0x05,0x6d,0xf9]
|
||||
@ CHECK: srsia sp!, #5 @ encoding: [0x05,0x05,0xed,0xf8]
|
||||
@ CHECK: srsib sp, #11 @ encoding: [0x0b,0x05,0xcd,0xf9]
|
||||
@ CHECK: srsia sp, #10 @ encoding: [0x0a,0x05,0xcd,0xf8]
|
||||
@ CHECK: srsdb sp, #9 @ encoding: [0x09,0x05,0x4d,0xf9]
|
||||
@ CHECK: srsda sp, #5 @ encoding: [0x05,0x05,0x4d,0xf8]
|
||||
@ CHECK: srsib sp!, #5 @ encoding: [0x05,0x05,0xed,0xf9]
|
||||
@ CHECK: srsia sp!, #5 @ encoding: [0x05,0x05,0xed,0xf8]
|
||||
@ CHECK: srsdb sp!, #5 @ encoding: [0x05,0x05,0x6d,0xf9]
|
||||
@ CHECK: srsda sp!, #5 @ encoding: [0x05,0x05,0x6d,0xf8]
|
||||
@ CHECK: srsia sp, #5 @ encoding: [0x05,0x05,0xcd,0xf8]
|
||||
@ CHECK: srsia sp!, #5 @ encoding: [0x05,0x05,0xed,0xf8]
|
||||
|
||||
|
@ -2349,10 +2349,10 @@ _func:
|
||||
@ CHECK: srsia sp, #0 @ encoding: [0x8d,0xe9,0x00,0xc0]
|
||||
@ CHECK: srsdb sp!, #19 @ encoding: [0x2d,0xe8,0x13,0xc0]
|
||||
@ CHECK: srsia sp!, #2 @ encoding: [0xad,0xe9,0x02,0xc0]
|
||||
@ CHECK: srsdb sp, #10 @ encoding: [0x0d,0xe8,0x0a,0xc0]
|
||||
@ CHECK: srsia sp, #9 @ encoding: [0x8d,0xe9,0x09,0xc0]
|
||||
@ CHECK: srsdb sp!, #5 @ encoding: [0x2d,0xe8,0x05,0xc0]
|
||||
@ CHECK: srsia sp, #10 @ encoding: [0x8d,0xe9,0x0a,0xc0]
|
||||
@ CHECK: srsdb sp, #9 @ encoding: [0x0d,0xe8,0x09,0xc0]
|
||||
@ CHECK: srsia sp!, #5 @ encoding: [0xad,0xe9,0x05,0xc0]
|
||||
@ CHECK: srsdb sp!, #5 @ encoding: [0x2d,0xe8,0x05,0xc0]
|
||||
@ CHECK: srsia sp, #5 @ encoding: [0x8d,0xe9,0x05,0xc0]
|
||||
@ CHECK: srsia sp!, #5 @ encoding: [0xad,0xe9,0x05,0xc0]
|
||||
|
||||
@ -2375,10 +2375,10 @@ _func:
|
||||
@ CHECK: srsia sp, #0 @ encoding: [0x8d,0xe9,0x00,0xc0]
|
||||
@ CHECK: srsdb sp!, #19 @ encoding: [0x2d,0xe8,0x13,0xc0]
|
||||
@ CHECK: srsia sp!, #2 @ encoding: [0xad,0xe9,0x02,0xc0]
|
||||
@ CHECK: srsdb sp, #10 @ encoding: [0x0d,0xe8,0x0a,0xc0]
|
||||
@ CHECK: srsia sp, #9 @ encoding: [0x8d,0xe9,0x09,0xc0]
|
||||
@ CHECK: srsdb sp!, #5 @ encoding: [0x2d,0xe8,0x05,0xc0]
|
||||
@ CHECK: srsia sp, #10 @ encoding: [0x8d,0xe9,0x0a,0xc0]
|
||||
@ CHECK: srsdb sp, #9 @ encoding: [0x0d,0xe8,0x09,0xc0]
|
||||
@ CHECK: srsia sp!, #5 @ encoding: [0xad,0xe9,0x05,0xc0]
|
||||
@ CHECK: srsdb sp!, #5 @ encoding: [0x2d,0xe8,0x05,0xc0]
|
||||
@ CHECK: srsia sp, #5 @ encoding: [0x8d,0xe9,0x05,0xc0]
|
||||
@ CHECK: srsia sp!, #5 @ encoding: [0xad,0xe9,0x05,0xc0]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user