blob: 68a7a5c5fc64362610150c12b8ae7c916bb1d159 [file] [log] [blame]
Tobias Edler von Kochf454b9e2017-02-15 20:36:36 +00001; Test the ability to emit assembly code from the resolution-based LTO API
2;
3; RUN: llvm-as < %s > %t1.bc
4;
5; RUN: llvm-lto2 -filetype=asm -r %t1.bc,main,px -o %t2 %t1.bc
6; RUN: FileCheck --check-prefix=ASM %s < %t2.0
7; RUN: llvm-lto2 -filetype=obj -r %t1.bc,main,px -o %t2 %t1.bc
8; RUN: llvm-objdump -d %t2.0 | FileCheck --check-prefix=ASM %s
9;
10; ASM: main:
11
12target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
13target triple = "x86_64-unknown-linux-gnu"
14
15define i32 @main() {
16entry:
17 ret i32 23
18}
19