20 lines · plain
1; Test the ability to emit assembly code from the resolution-based LTO API2;3; RUN: llvm-as < %s > %t1.bc4;5; RUN: llvm-lto2 run -filetype=asm -r %t1.bc,main,px -o %t2 %t1.bc6; RUN: FileCheck --check-prefix=ASM %s < %t2.07; RUN: llvm-lto2 run -filetype=obj -r %t1.bc,main,px -o %t2 %t1.bc8; RUN: llvm-objdump -d %t2.0 | FileCheck --check-prefix=ASM %s9;10; ASM: main11 12target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"13target triple = "x86_64-unknown-linux-gnu"14 15define i32 @main() {16entry:17 ret i32 2318}19 20