1 # RUN: llvm-mc -triple i386-linux-gnu %s| FileCheck %s
3 # This test checks the altmacro string delimiter '<' and '>'.
8 # You can delimit strings with matching angle brackets '<' '>'.
9 # If an argument begins with '<' and ends with '>'.
10 # The argument is considered as a string.
13 .macro simple_check_0 name
18 simple_check_0
<simpleCheck
>
21 # Except adding new string marks '<..>', a regular macro behavior is expected.
23 # CHECK: simpleCheck0:
24 # CHECK: addl $0, %eax
25 .macro concat string1 string2 string3
26 \string1\string2\string3
:
30 concat
<simple
>,<Check
>,<0>
33 # The altmacro cannot affect the regular less/greater behavior.
35 # CHECK: addl $-1, %eax
36 # CHECK: addl $0, %eax
46 # If a comma is present inside an angle brackets,
47 # the comma considered as a character and not as a separator.
48 # This check checks the ability to split the string to different
49 # arguments according to the use of the comma.
50 # Fun2 sees the comma as a character.
51 # Fun3 sees the comma as a separator.
53 # CHECK: addl $5, %eax
54 # CHECK: addl $6, %eax
62 # If argument begin with '<' and there is no '>' to close it.
63 # A regular macro behavior is expected.
65 # CHECK: addl $4, %eax