38 lines · plain
1# RUN: llvm-mc -triple=x86_64 %s | FileCheck %s2.macro one a:vararg3.ascii "|\a"4.endm5 6# CHECK: .byte 1247one8# CHECK: .ascii "|1"9one 110## Difference: GNU as squeezes repeated spaces.11# CHECK: .ascii "|1 2"12one 1 213## Difference: GNU as non-x86 drops the space before '(' (gas PR/25750)14# CHECK: .ascii "|1 (2 3"15one 1 (2 316# CHECK: .ascii "|1 2 3)"17one 1 2 3)18 19.macro two a, b:vararg20.ascii "|\a|\b"21.endm22 23# CHECK: .ascii "||"24two25# CHECK: .ascii "|1|"26two 127## Difference: GNU as squeezes repeated spaces.28# CHECK: .ascii "|1|2 3"29two 1 2 330 31## Parameters can be separated by spaces32.macro two1 a b:vararg33.ascii "|\a|\b"34.endm35 36# CHECK: .ascii "|1|2"37two1 1 238