2017-07-19 02:40:50 +08:00
|
|
|
; REQUIRES: x86
|
2017-02-10 06:52:21 +08:00
|
|
|
; RUN: rm -fr %T/savetemps
|
|
|
|
; RUN: mkdir %T/savetemps
|
|
|
|
; RUN: llvm-as -o %T/savetemps/savetemps.obj %s
|
|
|
|
; RUN: lld-link /out:%T/savetemps/savetemps.exe /entry:main \
|
|
|
|
; RUN: /subsystem:console %T/savetemps/savetemps.obj
|
|
|
|
; RUN: not llvm-dis -o - %T/savetemps/savetemps.exe.0.0.preopt.bc
|
|
|
|
; RUN: not llvm-dis -o - %T/savetemps/savetemps.exe.0.2.internalize.bc
|
|
|
|
; RUN: not llvm-dis -o - %T/savetemps/savetemps.exe.0.4.opt.bc
|
|
|
|
; RUN: not llvm-dis -o - %T/savetemps/savetemps.exe.0.5.precodegen.bc
|
|
|
|
; RUN: not llvm-objdump -s %T/savetemps/savetemps.exe.lto.obj
|
|
|
|
; RUN: lld-link /lldsavetemps /out:%T/savetemps/savetemps.exe /entry:main \
|
2017-02-10 07:31:47 +08:00
|
|
|
; RUN: /subsystem:console %T/savetemps/savetemps.obj
|
2017-02-10 06:52:21 +08:00
|
|
|
; RUN: llvm-dis -o - %T/savetemps/savetemps.exe.0.0.preopt.bc | FileCheck %s
|
|
|
|
; RUN: llvm-dis -o - %T/savetemps/savetemps.exe.0.2.internalize.bc | FileCheck %s
|
|
|
|
; RUN: llvm-dis -o - %T/savetemps/savetemps.exe.0.4.opt.bc | FileCheck %s
|
|
|
|
; RUN: llvm-dis -o - %T/savetemps/savetemps.exe.0.5.precodegen.bc | FileCheck %s
|
|
|
|
; RUN: llvm-objdump -s %T/savetemps/savetemps.exe.lto.obj | \
|
|
|
|
; RUN: FileCheck --check-prefix=CHECK-OBJDUMP %s
|
2017-02-09 02:36:41 +08:00
|
|
|
|
|
|
|
; CHECK: define i32 @main()
|
|
|
|
; CHECK-OBJDUMP: file format COFF
|
|
|
|
|
2019-08-28 09:08:54 +08:00
|
|
|
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
|
2017-02-09 02:36:41 +08:00
|
|
|
target triple = "x86_64-pc-windows-msvc"
|
|
|
|
|
|
|
|
define i32 @main() {
|
|
|
|
ret i32 0
|
|
|
|
}
|