1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=x86 -mtriple=i686-pc-linux-gnu -relocation-model=pic 2*9880d681SAndroid Build Coastguard Worker; PR1027 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Worker %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*9880d681SAndroid Build Coastguard Worker %struct._IO_marker = type { %struct._IO_marker*, %struct._IO_FILE*, i32 } 6*9880d681SAndroid Build Coastguard Worker@stderr = external global %struct._IO_FILE* 7*9880d681SAndroid Build Coastguard Worker 8*9880d681SAndroid Build Coastguard Workerdefine void @__eprintf(i8* %string, i8* %expression, i32 %line, i8* %filename) { 9*9880d681SAndroid Build Coastguard Worker %tmp = load %struct._IO_FILE*, %struct._IO_FILE** @stderr 10*9880d681SAndroid Build Coastguard Worker %tmp5 = tail call i32 (%struct._IO_FILE*, i8*, ...) @fprintf( %struct._IO_FILE* %tmp, i8* %string, i8* %expression, i32 %line, i8* %filename ) 11*9880d681SAndroid Build Coastguard Worker %tmp6 = load %struct._IO_FILE*, %struct._IO_FILE** @stderr 12*9880d681SAndroid Build Coastguard Worker %tmp7 = tail call i32 @fflush( %struct._IO_FILE* %tmp6 ) 13*9880d681SAndroid Build Coastguard Worker tail call void @abort( ) 14*9880d681SAndroid Build Coastguard Worker unreachable 15*9880d681SAndroid Build Coastguard Worker} 16*9880d681SAndroid Build Coastguard Worker 17*9880d681SAndroid Build Coastguard Workerdeclare i32 @fprintf(%struct._IO_FILE*, i8*, ...) 18*9880d681SAndroid Build Coastguard Worker 19*9880d681SAndroid Build Coastguard Workerdeclare i32 @fflush(%struct._IO_FILE*) 20*9880d681SAndroid Build Coastguard Worker 21*9880d681SAndroid Build Coastguard Workerdeclare void @abort() 22