1 ; RUN: llc < %s -march=x86 -mtriple=i686-pc-linux-gnu -relocation-model=pic 2 ; 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 8 define 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 17 declare i32 @fprintf(%struct._IO_FILE*, i8*, ...) 18 19 declare i32 @fflush(%struct._IO_FILE*) 20 21 declare void @abort() 22