1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/test/tools/llvm-ml/struct_alignment.asm
Eric Astor 4082cce59d [ms] [llvm-ml] Introduce command-line compatibility for ml.exe and ml64.exe
Switch to OptParser for command-line handling

Reviewed By: thakis

Differential Revision: https://reviews.llvm.org/D90058
2020-12-01 17:43:44 -05:00

45 lines
686 B
NASM

; RUN: llvm-ml -filetype=s %s /Fo - | FileCheck %s
.data
FOO STRUCT 8
f FWORD -1
FOO ENDS
t1 FOO <>
; CHECK-LABEL: t1:
; CHECK-NEXT: .long 4294967295
; CHECK-NEXT: .short 65535
; CHECK-NOT: .zero
BAZ STRUCT
b BYTE 3 DUP (-1)
f FWORD -1
BAZ ENDS
FOOBAR STRUCT 8
f1 BAZ <>
f2 BAZ <>
h BYTE -1
FOOBAR ENDS
t2 FOOBAR <>
; CHECK-LABEL: t2:
; CHECK-NEXT: .byte -1
; CHECK-NEXT: .byte -1
; CHECK-NEXT: .byte -1
; CHECK-NEXT: .long 4294967295
; CHECK-NEXT: .short 65535
; CHECK-NEXT: .zero 3
; CHECK-NEXT: .byte -1
; CHECK-NEXT: .byte -1
; CHECK-NEXT: .byte -1
; CHECK-NEXT: .long 4294967295
; CHECK-NEXT: .short 65535
; CHECK-NEXT: .byte -1
; CHECK-NEXT: .zero 2
.code
END