[libc] Switch to using the generic `<gpuintrin.h>` implementations (#121810)
[llvm-project.git] / llvm / test / MC / AsmParser / macro-vararg.s
blob79b6801e2b72f1a35f09e5185ca81e1209781840
1 # RUN: llvm-mc -triple=x86_64 %s | FileCheck %s
2 .macro one a:vararg
3 .ascii "|\a"
4 .endm
6 # CHECK: .byte 124
7 one
8 # CHECK: .ascii "|1"
9 one 1
10 ## Difference: GNU as squeezes repeated spaces.
11 # CHECK: .ascii "|1 2"
12 one 1 2
13 ## Difference: GNU as non-x86 drops the space before '(' (gas PR/25750)
14 # CHECK: .ascii "|1 (2 3"
15 one 1 (2 3
16 # CHECK: .ascii "|1 2 3)"
17 one 1 2 3)
19 .macro two a, b:vararg
20 .ascii "|\a|\b"
21 .endm
23 # CHECK: .ascii "||"
24 two
25 # CHECK: .ascii "|1|"
26 two 1
27 ## Difference: GNU as squeezes repeated spaces.
28 # CHECK: .ascii "|1|2 3"
29 two 1 2 3
31 ## Parameters can be separated by spaces
32 .macro two1 a b:vararg
33 .ascii "|\a|\b"
34 .endm
36 # CHECK: .ascii "|1|2"
37 two1 1 2