mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Fix PR7193: if sibling call address can take a register, make sure there are enough registers available by counting inreg arguments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105092 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
16
test/CodeGen/X86/sibcall-3.ll
Normal file
16
test/CodeGen/X86/sibcall-3.ll
Normal file
@@ -0,0 +1,16 @@
|
||||
; RUN: llc < %s -mtriple=i386-unknown-unknown | FileCheck %s
|
||||
; PR7193
|
||||
|
||||
define void @t1(i8* inreg %dst, i8* inreg %src, i8* inreg %len) nounwind {
|
||||
; CHECK: t1:
|
||||
; CHECK: call 0
|
||||
tail call void null(i8* inreg %dst, i8* inreg %src, i8* inreg %len) nounwind
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @t2(i8* inreg %dst, i8* inreg %src, i8* inreg %len) nounwind {
|
||||
; CHECK: t2:
|
||||
; CHECK: jmpl
|
||||
tail call void null(i8* inreg %dst, i8* inreg %src) nounwind
|
||||
ret void
|
||||
}
|
Reference in New Issue
Block a user