Add lduw and lwua aliases for SPARCv9.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244535 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Joerg Sonnenberger 2015-08-10 23:47:22 +00:00
parent dd0dde5b84
commit ec605efedd
2 changed files with 20 additions and 0 deletions

View File

@ -429,6 +429,9 @@ def : InstAlias<"wr $simm13, %tbr", (WRTBRri G0, i32imm:$simm13), 0>;
def : InstAlias<"flush", (FLUSH), 0>;
def : MnemonicAlias<"lduw", "ld">, Requires<[HasV9]>;
def : MnemonicAlias<"lduwa", "lda">, Requires<[HasV9]>;
def : MnemonicAlias<"return", "rett">, Requires<[HasV9]>;
def : MnemonicAlias<"addc", "addx">, Requires<[HasV9]>;

View File

@ -35,3 +35,20 @@
! V8-NEXT: signx %g1
! V9: sra %g1, %g0, %g1 ! encoding: [0x83,0x38,0x40,0x00]
signx %g1
! V8: error: invalid instruction mnemonic
! V8-NEXT: lduw [%i0 + %l6], %o2
! V9: ld [%i0+%l6], %o2 ! encoding: [0xd4,0x06,0x00,0x16]
lduw [%i0 + %l6], %o2
! V8: error: invalid instruction mnemonic
! V8-NEXT: lduw [%i0 + 32], %o2
! V9: ld [%i0+32], %o2 ! encoding: [0xd4,0x06,0x20,0x20]
lduw [%i0 + 32], %o2
! V8: error: invalid instruction mnemonic
! V8-NEXT: lduw [%g1], %o2
! V9: ld [%g1], %o2 ! encoding: [0xd4,0x00,0x40,0x00]
lduw [%g1], %o2
! V8: error: invalid instruction mnemonic
! V8-NEXT: lduwa [%i0 + %l6] 131, %o2
! V9: lda [%i0+%l6] 131, %o2 ! encoding: [0xd4,0x86,0x10,0x76]
lduwa [%i0 + %l6] 131, %o2