mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-20 09:30:43 +00:00
12 lines
229 B
LLVM
12 lines
229 B
LLVM
|
; RUN: llc < %s -march=xcore | FileCheck %s
|
||
|
|
||
|
; CHECK: f1
|
||
|
; CHECK: stw lr, sp[0]
|
||
|
; CHECK: ldw lr, sp[0]
|
||
|
; CHECK-NEXT: retsp 0
|
||
|
define void @f1() nounwind {
|
||
|
entry:
|
||
|
tail call void asm sideeffect "", "~{lr}"() nounwind
|
||
|
ret void
|
||
|
}
|