mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Do not use '&' prefix for globals when register base field is non-zero, otherwise msp430-as will silently miscompile the code (TI's assembler report an error though).
This fixes PR6349 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97877 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -32,7 +32,7 @@ define void @am3(i16 %i, i8 %x) nounwind {
|
||||
ret void
|
||||
}
|
||||
; CHECK: am3:
|
||||
; CHECK: bis.b r14, &bar(r15)
|
||||
; CHECK: bis.b r14, bar(r15)
|
||||
|
||||
define void @am4(i16 %x) nounwind {
|
||||
%1 = volatile load i16* inttoptr(i16 32 to i16*)
|
||||
@@ -77,5 +77,5 @@ define void @am7(i16 %n, i8 %x) nounwind {
|
||||
ret void
|
||||
}
|
||||
; CHECK: am7:
|
||||
; CHECK: bis.b r14, &duh+2(r15)
|
||||
; CHECK: bis.b r14, duh+2(r15)
|
||||
|
||||
|
Reference in New Issue
Block a user