• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; REQUIRES: x86
2; RUN: rm -fr %T/savetemps
3; RUN: mkdir %T/savetemps
4; RUN: llvm-as -o %T/savetemps/savetemps.obj %s
5; RUN: lld-link /out:%T/savetemps/savetemps.exe /entry:main \
6; RUN:     /subsystem:console %T/savetemps/savetemps.obj
7; RUN: not llvm-dis -o - %T/savetemps/savetemps.exe.0.0.preopt.bc
8; RUN: not llvm-dis -o - %T/savetemps/savetemps.exe.0.2.internalize.bc
9; RUN: not llvm-dis -o - %T/savetemps/savetemps.exe.0.4.opt.bc
10; RUN: not llvm-dis -o - %T/savetemps/savetemps.exe.0.5.precodegen.bc
11; RUN: not llvm-objdump -s %T/savetemps/savetemps.exe.lto.obj
12; RUN: lld-link /lldsavetemps /out:%T/savetemps/savetemps.exe /entry:main \
13; RUN:     /subsystem:console %T/savetemps/savetemps.obj
14; RUN: llvm-dis -o - %T/savetemps/savetemps.exe.0.0.preopt.bc | FileCheck %s
15; RUN: llvm-dis -o - %T/savetemps/savetemps.exe.0.2.internalize.bc | FileCheck %s
16; RUN: llvm-dis -o - %T/savetemps/savetemps.exe.0.4.opt.bc | FileCheck %s
17; RUN: llvm-dis -o - %T/savetemps/savetemps.exe.0.5.precodegen.bc | FileCheck %s
18; RUN: llvm-objdump -s %T/savetemps/savetemps.exe.lto.obj | \
19; RUN:     FileCheck --check-prefix=CHECK-OBJDUMP %s
20
21; CHECK: define i32 @main()
22; CHECK-OBJDUMP: file format coff
23
24target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
25target triple = "x86_64-pc-windows-msvc"
26
27define i32 @main() {
28  ret i32 0
29}
30