mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 21:34:23 +00:00
LI could theoretically be used for the lo-part of a global address, just like
lis can be used for the high part. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24388 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0c8fbe33a4
commit
bae5b3c1c6
@ -260,7 +260,7 @@ def MULLI : DForm_2< 7, (ops GPRC:$rD, GPRC:$rA, s16imm:$imm),
|
|||||||
def SUBFIC : DForm_2< 8, (ops GPRC:$rD, GPRC:$rA, s16imm:$imm),
|
def SUBFIC : DForm_2< 8, (ops GPRC:$rD, GPRC:$rA, s16imm:$imm),
|
||||||
"subfic $rD, $rA, $imm", IntGeneral,
|
"subfic $rD, $rA, $imm", IntGeneral,
|
||||||
[(set GPRC:$rD, (sub immSExt16:$imm, GPRC:$rA))]>;
|
[(set GPRC:$rD, (sub immSExt16:$imm, GPRC:$rA))]>;
|
||||||
def LI : DForm_2_r0<14, (ops GPRC:$rD, s16imm:$imm),
|
def LI : DForm_2_r0<14, (ops GPRC:$rD, symbolLo:$imm),
|
||||||
"li $rD, $imm", IntGeneral,
|
"li $rD, $imm", IntGeneral,
|
||||||
[(set GPRC:$rD, immSExt16:$imm)]>;
|
[(set GPRC:$rD, immSExt16:$imm)]>;
|
||||||
def LIS : DForm_2_r0<15, (ops GPRC:$rD, symbolHi:$imm),
|
def LIS : DForm_2_r0<15, (ops GPRC:$rD, symbolHi:$imm),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user