mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +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"),[],
|
||||
itin> {
|
||||
let isCodeGenOnly=1;
|
||||
let Size=6;
|
||||
}
|
||||
|
||||
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"),[],
|
||||
itin> {
|
||||
let isCodeGenOnly=1;
|
||||
let Size=6;
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -790,11 +790,11 @@ initializeFunctionInfo(const std::vector<MachineInstr*> &CPEMIs) {
|
||||
Bits = 8;
|
||||
Scale = 4;
|
||||
LongFormOpcode = Mips::LwRxPcTcpX16;
|
||||
LongFormBits = 16;
|
||||
LongFormBits = 14;
|
||||
LongFormScale = 1;
|
||||
break;
|
||||
case Mips::LwRxPcTcpX16:
|
||||
Bits = 16;
|
||||
Bits = 14;
|
||||
Scale = 1;
|
||||
NegOk = true;
|
||||
break;
|
||||
|
@ -19,7 +19,7 @@ entry:
|
||||
; load-relax: $CPI0_0:
|
||||
; load-relax: .4byte 3735943886
|
||||
; load-relax: .end t
|
||||
call void asm sideeffect ".space 40000", ""() #1, !srcloc !1
|
||||
call void asm sideeffect ".space 10000", ""() #1, !srcloc !1
|
||||
ret void
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user