blob: 954c95d696117f9039448ad85cd60901e9b990d2 [file] [log] [blame]
Dan Gohman36a09472009-09-08 23:54:48 +00001; RUN: llc < %s -march=x86 -mtriple=i686-pc-linux-gnu -relocation-model=pic
Evan Cheng85f00082007-02-19 21:53:59 +00002; PR1027
3
4 %struct._IO_FILE = type { i32, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, %struct._IO_marker*, %struct._IO_FILE*, i32, i32, i32, i16, i8, [1 x i8], i8*, i64, i8*, i8*, i8*, i8*, i32, i32, [40 x i8] }
5 %struct._IO_marker = type { %struct._IO_marker*, %struct._IO_FILE*, i32 }
6@stderr = external global %struct._IO_FILE*
7
8define void @__eprintf(i8* %string, i8* %expression, i32 %line, i8* %filename) {
9 %tmp = load %struct._IO_FILE** @stderr
10 %tmp5 = tail call i32 (%struct._IO_FILE*, i8*, ...)* @fprintf( %struct._IO_FILE* %tmp, i8* %string, i8* %expression, i32 %line, i8* %filename )
11 %tmp6 = load %struct._IO_FILE** @stderr
12 %tmp7 = tail call i32 @fflush( %struct._IO_FILE* %tmp6 )
13 tail call void @abort( )
14 unreachable
15}
16
17declare i32 @fprintf(%struct._IO_FILE*, i8*, ...)
18
19declare i32 @fflush(%struct._IO_FILE*)
20
21declare void @abort()