
Rather than requiring users to pass `-m64` to the `llvm-ml` driver to get 64-bit behavior, we add the `llvm-ml64` alias, matching the behavior of `ML.EXE` and `ML64.EXE`. The original flavor/bitness flags still work, but the alias should make some workflows easier. NOTE: The logic for this already existed in the code; we're just finally adding the build/install instructions to match.
19 lines
469 B
NASM
19 lines
469 B
NASM
; RUN: llvm-ml -filetype=s %s /Fo - | FileCheck %s --check-prefixes=CHECK,CHECK-32
|
|
; RUN: llvm-ml64 -filetype=s %s /Fo - | FileCheck %s --check-prefixes=CHECK,CHECK-64
|
|
|
|
extern foo : dword, bar : word, baz : proc
|
|
; CHECK: .extern foo
|
|
; CHECK: .extern bar
|
|
; CHECK: .extern baz
|
|
|
|
.code
|
|
mov ebx, foo
|
|
; CHECK-32: mov ebx, dword ptr [foo]
|
|
; CHECK-64: mov ebx, dword ptr [rip + foo]
|
|
|
|
mov bx, bar
|
|
; CHECK-32: mov bx, word ptr [bar]
|
|
; CHECK-64: mov bx, word ptr [rip + bar]
|
|
|
|
END
|