mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Add testcase from bug 2770.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55897 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a9c3251e6b
commit
1db6a2bac8
14
test/CodeGen/Generic/fastcall.ll
Normal file
14
test/CodeGen/Generic/fastcall.ll
Normal file
@ -0,0 +1,14 @@
|
||||
; Test fastcc works. Test from bug 2770.
|
||||
; RUN: llvm-as < %s | llc -relocation-model=pic
|
||||
|
||||
|
||||
%struct.__gcov_var = type { i32 }
|
||||
@__gcov_var = external global %struct.__gcov_var
|
||||
|
||||
define fastcc void @gcov_read_words(i32 %words) {
|
||||
entry:
|
||||
store i32 %words, i32* getelementptr (%struct.__gcov_var*
|
||||
@__gcov_var,
|
||||
i32 0, i32 0)
|
||||
ret void
|
||||
}
|
Loading…
Reference in New Issue
Block a user