xref: /llvm-project/llvm/test/LTO/Resolution/X86/asm-output.ll (revision 71e2ca6e32105b35aeadeab25010e8f999c47c23)
1f454b9eaSTobias Edler von Koch; Test the ability to emit assembly code from the resolution-based LTO API
2f454b9eaSTobias Edler von Koch;
3f454b9eaSTobias Edler von Koch; RUN: llvm-as < %s > %t1.bc
4f454b9eaSTobias Edler von Koch;
57faa60c4SPeter Collingbourne; RUN: llvm-lto2 run -filetype=asm -r %t1.bc,main,px -o %t2 %t1.bc
6f454b9eaSTobias Edler von Koch; RUN: FileCheck --check-prefix=ASM %s < %t2.0
77faa60c4SPeter Collingbourne; RUN: llvm-lto2 run -filetype=obj -r %t1.bc,main,px -o %t2 %t1.bc
8f454b9eaSTobias Edler von Koch; RUN: llvm-objdump -d %t2.0 | FileCheck --check-prefix=ASM %s
9f454b9eaSTobias Edler von Koch;
10*71e2ca6eSFangrui Song; ASM: main
11f454b9eaSTobias Edler von Koch
127b1d7937SAmy Huangtarget datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
13f454b9eaSTobias Edler von Kochtarget triple = "x86_64-unknown-linux-gnu"
14f454b9eaSTobias Edler von Koch
15f454b9eaSTobias Edler von Kochdefine i32 @main() {
16f454b9eaSTobias Edler von Kochentry:
17f454b9eaSTobias Edler von Koch  ret i32 23
18f454b9eaSTobias Edler von Koch}
19f454b9eaSTobias Edler von Koch
20