blob: e0e519d064dea0e03ab2fbd8cefe147510c1c61b [file] [log] [blame]
Sam Clegg8bda5082017-07-10 20:43:26 +00001; Input used for generating checked-in binaries (trivial.obj.*)
2; llc -mtriple=i386-pc-win32 trivial.ll -filetype=obj -o trivial.obj.coff-i386
3; llc -mtriple=x86_64-pc-win32 trivial.ll -filetype=obj -o trivial.obj.coff-x86-64
4; llc -mtriple=i386-linux-gnu trivial.ll -filetype=obj -o trivial.obj.elf-i386 -relocation-model=pic
5; llc -mtriple=x86_64-linux-gnu trivial.ll -filetype=obj -o trivial.obj.elf-x86-64 -relocation-model=pic
6; llc -mtriple=i386-apple-darwin10 trivial.ll -filetype=obj -o trivial.obj.macho-i386 -relocation-model=pic
7; llc -mtriple=x86_64-apple-darwin10 trivial.ll -filetype=obj -o trivial.obj.macho-x86-64 -relocation-model=pic
8; llc -mtriple=wasm32-unknown-unknown-wasm trivial.ll -filetype=obj -o trivial.obj.wasm
Eric Christopher9cad53c2013-04-03 18:31:38 +00009
10@.str = private unnamed_addr constant [13 x i8] c"Hello World\0A\00", align 1
11
12define i32 @main() nounwind {
13entry:
David Blaikief72d05b2015-03-13 18:20:45 +000014 %call = tail call i32 @puts(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i32 0, i32 0)) nounwind
Eric Christopher9cad53c2013-04-03 18:31:38 +000015 tail call void bitcast (void (...)* @SomeOtherFunction to void ()*)() nounwind
16 ret i32 0
17}
18
19declare i32 @puts(i8* nocapture) nounwind
20
21declare void @SomeOtherFunction(...)