mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
[XCore] Fix call of absolute address.
Previously for: tail call void inttoptr (i64 65536 to void ()*)() nounwind We would emit: bl 65536 The immediate operand of the bl instruction is a relative offset so it is wrong to use the absolute address here. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202860 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
; RUN: llc < %s -march=xcore | FileCheck %s
|
||||
|
||||
; CHECK-LABEL: bl_imm:
|
||||
; CHECK: ldw [[R0:r[0-9]+]], cp
|
||||
; CHECK: bla [[R0]]
|
||||
define void @bl_imm() nounwind {
|
||||
entry:
|
||||
tail call void inttoptr (i64 65536 to void ()*)() nounwind
|
||||
ret void
|
||||
}
|
||||
Reference in New Issue
Block a user