2008-09-08 19:17:54 +08:00
|
|
|
; Test fastcc works. Test from bug 2770.
|
2009-09-09 08:09:15 +08:00
|
|
|
; RUN: llc < %s -relocation-model=pic
|
2008-09-08 19:17:54 +08:00
|
|
|
|
|
|
|
|
|
|
|
%struct.__gcov_var = type { i32 }
|
|
|
|
@__gcov_var = external global %struct.__gcov_var
|
|
|
|
|
|
|
|
define fastcc void @gcov_read_words(i32 %words) {
|
|
|
|
entry:
|
2015-03-14 02:20:45 +08:00
|
|
|
store i32 %words, i32* getelementptr (%struct.__gcov_var, %struct.__gcov_var*
|
2008-09-08 19:17:54 +08:00
|
|
|
@__gcov_var,
|
|
|
|
i32 0, i32 0)
|
|
|
|
ret void
|
|
|
|
}
|