1*9880d681SAndroid Build Coastguard Worker; Test the various output formats of the llvm-lto utility 2*9880d681SAndroid Build Coastguard Worker; 3*9880d681SAndroid Build Coastguard Worker; RUN: llvm-as < %s > %t1 4*9880d681SAndroid Build Coastguard Worker; 5*9880d681SAndroid Build Coastguard Worker; RUN: llvm-lto -exported-symbol=main -save-merged-module -filetype=asm -o %t2 %t1 6*9880d681SAndroid Build Coastguard Worker; RUN: llvm-dis -o - %t2.merged.bc | FileCheck %s 7*9880d681SAndroid Build Coastguard Worker; CHECK: @main() 8*9880d681SAndroid Build Coastguard Worker 9*9880d681SAndroid Build Coastguard Worker; RUN: FileCheck --check-prefix=ASM %s < %t2 10*9880d681SAndroid Build Coastguard Worker; RUN: llvm-lto -exported-symbol=main -filetype=obj -o %t2 %t1 11*9880d681SAndroid Build Coastguard Worker; RUN: llvm-objdump -d %t2 | FileCheck --check-prefix=ASM %s 12*9880d681SAndroid Build Coastguard Worker; ASM: main: 13*9880d681SAndroid Build Coastguard Worker; 14*9880d681SAndroid Build Coastguard Worker 15*9880d681SAndroid Build Coastguard Workertarget triple = "x86_64-unknown-linux-gnu" 16*9880d681SAndroid Build Coastguard Worker 17*9880d681SAndroid Build Coastguard Workerdefine i32 @main() { 18*9880d681SAndroid Build Coastguard Workerentry: 19*9880d681SAndroid Build Coastguard Worker ret i32 23 20*9880d681SAndroid Build Coastguard Worker} 21*9880d681SAndroid Build Coastguard Worker 22