llvm-project/llvm/test/tools/llvm-ml/nested_proc.asm
Eric Astor 94fae7a581 [ms] [llvm-ml] Add support for nested PROC/ENDP pairs
This is believed to match behavior by ML.EXE and ML64.EXE.

Reviewed By: thakis

Differential Revision: https://reviews.llvm.org/D131522
2022-08-11 14:19:02 +00:00

31 lines
410 B
NASM

; RUN: llvm-ml -m32 -filetype=s %s /Fo - | FileCheck %s
; RUN: llvm-ml -m64 -filetype=s %s /Fo - | FileCheck %s
.code
t1 PROC
xor eax, eax
t1_nested PROC
ret
t1_nested ENDP
t1 ENDP
; CHECK-LABEL: t1:
; CHECK: xor eax, eax
; CHECK: t1_nested:
; CHECK: ret
t2 PROC
xor eax, eax
t2_nested PROC
ret
T2_nEsTeD ENDP
t2 ENDP
; CHECK-LABEL: t2:
; CHECK: xor eax, eax
; CHECK: t2_nested:
; CHECK: ret
END