mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-27 15:29:51 +00:00
"move $4, $5" is printed instead of "or $4, $5, $zero". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176455 91177308-0d34-0410-b5e6-96231b3b80d8
24 lines
436 B
LLVM
24 lines
436 B
LLVM
; RUN: llc -march=mipsel < %s | FileCheck %s
|
|
|
|
define i8* @f1() nounwind {
|
|
entry:
|
|
%0 = call i8* @llvm.returnaddress(i32 0)
|
|
ret i8* %0
|
|
|
|
; CHECK: move $2, $ra
|
|
}
|
|
|
|
define i8* @f2() nounwind {
|
|
entry:
|
|
call void @g()
|
|
%0 = call i8* @llvm.returnaddress(i32 0)
|
|
ret i8* %0
|
|
|
|
; CHECK: move $[[R0:[0-9]+]], $ra
|
|
; CHECK: jal
|
|
; CHECK: move $2, $[[R0]]
|
|
}
|
|
|
|
declare i8* @llvm.returnaddress(i32) nounwind readnone
|
|
declare void @g()
|