brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 45e9c82 Raw
31 lines · plain
1# RUN: yaml2obj %p/Inputs/machine-x64.yaml -o %t.obj2# RUN: lld-link -safeseh:no /entry:main /subsystem:console /out:%t.exe %t.obj3# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=AMD64 %s4# RUN: lld-link -safeseh:no /entry:main /subsystem:console /machine:x64 \5# RUN:   /out:%t.exe %t.obj6# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=AMD64 %s7 8AMD64: Machine: IMAGE_FILE_MACHINE_AMD649 10# RUN: yaml2obj %p/Inputs/machine-x86.yaml -o %t.obj11# RUN: lld-link -safeseh:no /entry:main /subsystem:console /out:%t.exe %t.obj12# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=I386 %s13# RUN: lld-link -safeseh:no /entry:main /subsystem:console /machine:x86 \14# RUN:   /out:%t.exe %t.obj /fixed15# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=I386 %s16 17I386: Machine: IMAGE_FILE_MACHINE_I38618 19# RUN: yaml2obj %p/Inputs/machine-x64.yaml -o %t.obj20# RUN: not lld-link /entry:main /subsystem:console /machine:x86 \21# RUN:   /out:%t.exe %t.obj /fixed >& %t.log22# RUN: FileCheck -check-prefix=INCOMPAT %s < %t.log23 24# RUN: yaml2obj %p/Inputs/machine-x86.yaml -o %t1.obj25# RUN: sed -e s/main/foo/ %p/Inputs/machine-x64.yaml | yaml2obj > %t2.obj26# RUN: not lld-link /entry:main /subsystem:console /out:%t.exe \27# RUN:   %t1.obj %t2.obj >& %t.log28# RUN: FileCheck -check-prefix=INCOMPAT %s < %t.log29 30INCOMPAT: .obj: machine type x64 conflicts with x8631