Also adds support for the ML.exe command-line flag /X, which ignores the INCLUDE environment variable.
This relands commit c43f413b01 using lit's cross-platform `env` support.
Differential Revision: https://reviews.llvm.org/D103989
21 lines
248 B
NASM
21 lines
248 B
NASM
; RUN: env INCLUDE=%S llvm-ml -filetype=s %s /Fo - | FileCheck %s
|
|
|
|
include included.inc
|
|
|
|
.code
|
|
|
|
t1:
|
|
mov eax, Const
|
|
|
|
; CHECK-LABEL: t1:
|
|
; CHECK-NEXT: mov eax, 8
|
|
|
|
t2:
|
|
push_pop ebx
|
|
|
|
; CHECK-LABEL: t2:
|
|
; CHECK-NEXT: push ebx
|
|
; CHECK-NEXT: pop ebx
|
|
|
|
end
|