mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 21:29:41 +00:00
Adjust offsets for max load instruction offsets. This is more pessimistic
than it needs to be by 1 bit but I need to finish some other things so that all the boundary cases will work in that situation. constpool.c in test-suite will fail to assemble under our new internal test-suite sync without this change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199343 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d12cef8281
commit
897473a28d
@ -119,6 +119,7 @@ class FJAL16_ins<bits<1> _X, string asmstr,
|
|||||||
!strconcat(asmstr, "\t$imm\n\tnop"),[],
|
!strconcat(asmstr, "\t$imm\n\tnop"),[],
|
||||||
itin> {
|
itin> {
|
||||||
let isCodeGenOnly=1;
|
let isCodeGenOnly=1;
|
||||||
|
let Size=6;
|
||||||
}
|
}
|
||||||
|
|
||||||
class FJALB16_ins<bits<1> _X, string asmstr,
|
class FJALB16_ins<bits<1> _X, string asmstr,
|
||||||
@ -127,6 +128,7 @@ class FJALB16_ins<bits<1> _X, string asmstr,
|
|||||||
!strconcat(asmstr, "\t$imm\t# branch\n\tnop"),[],
|
!strconcat(asmstr, "\t$imm\t# branch\n\tnop"),[],
|
||||||
itin> {
|
itin> {
|
||||||
let isCodeGenOnly=1;
|
let isCodeGenOnly=1;
|
||||||
|
let Size=6;
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -790,11 +790,11 @@ initializeFunctionInfo(const std::vector<MachineInstr*> &CPEMIs) {
|
|||||||
Bits = 8;
|
Bits = 8;
|
||||||
Scale = 4;
|
Scale = 4;
|
||||||
LongFormOpcode = Mips::LwRxPcTcpX16;
|
LongFormOpcode = Mips::LwRxPcTcpX16;
|
||||||
LongFormBits = 16;
|
LongFormBits = 14;
|
||||||
LongFormScale = 1;
|
LongFormScale = 1;
|
||||||
break;
|
break;
|
||||||
case Mips::LwRxPcTcpX16:
|
case Mips::LwRxPcTcpX16:
|
||||||
Bits = 16;
|
Bits = 14;
|
||||||
Scale = 1;
|
Scale = 1;
|
||||||
NegOk = true;
|
NegOk = true;
|
||||||
break;
|
break;
|
||||||
|
@ -19,7 +19,7 @@ entry:
|
|||||||
; load-relax: $CPI0_0:
|
; load-relax: $CPI0_0:
|
||||||
; load-relax: .4byte 3735943886
|
; load-relax: .4byte 3735943886
|
||||||
; load-relax: .end t
|
; load-relax: .end t
|
||||||
call void asm sideeffect ".space 40000", ""() #1, !srcloc !1
|
call void asm sideeffect ".space 10000", ""() #1, !srcloc !1
|
||||||
ret void
|
ret void
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user