mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
4082cce59d
Switch to OptParser for command-line handling Reviewed By: thakis Differential Revision: https://reviews.llvm.org/D90058
25 lines
1.0 KiB
NASM
25 lines
1.0 KiB
NASM
; RUN: llvm-ml -m32 %s /Fo - | llvm-readobj --syms - | FileCheck %s --check-prefix=CHECK-OBJ --check-prefix=CHECK-OBJ-NOSAFESEH
|
|
; RUN: llvm-ml -m64 %s /Fo - | llvm-readobj --syms - | FileCheck %s --check-prefix=CHECK-OBJ --check-prefix=CHECK-OBJ-NOSAFESEH
|
|
|
|
; RUN: llvm-ml -m32 -safeseh %s /Fo - | llvm-readobj --syms - | FileCheck %s --check-prefix=CHECK-OBJ --check-prefix=CHECK-OBJ-SAFESEH
|
|
; RUN: llvm-ml -m64 -safeseh %s /Fo %t.obj 2>&1 | FileCheck %s --check-prefix=CHECK-SAFESEH64
|
|
; RUN: llvm-readobj --syms %t.obj | FileCheck %s --check-prefix=CHECK-OBJ --check-prefix=CHECK-OBJ-NOSAFESEH
|
|
|
|
; CHECK-SAFESEH64: warning: /safeseh applies only to 32-bit X86 platforms; ignoring.
|
|
|
|
.code
|
|
noop:
|
|
ret
|
|
end
|
|
|
|
; CHECK-OBJ: Symbol {
|
|
; CHECK-OBJ: Name: @feat.00
|
|
; CHECK-OBJ-NOSAFESEH: Value: 2
|
|
; CHECK-OBJ-SAFESEH: Value: 3
|
|
; CHECK-OBJ-NEXT: Section: IMAGE_SYM_ABSOLUTE
|
|
; CHECK-OBJ-NEXT: BaseType: Null
|
|
; CHECK-OBJ-NEXT: ComplexType: Null
|
|
; CHECK-OBJ-NEXT: StorageClass: External
|
|
; CHECK-OBJ-NEXT: AuxSymbolCount: 0
|
|
; CHECK-OBJ-NEXT: }
|