@@ -497,7 +497,7 @@ sub expand_macros {
my $comma_sep_required = 0;
foreach (@arglist) {
# allow arithmetic/shift operators in macro arguments
- $_ =~ s/\s*(\+|-|\*|\/|<<|>>)\s*/$1/g;
+ $_ =~ s/\s*(\+|-|\*|\/|<<|>>|<|>)\s*/$1/g;
my @whitespace_split = split(/\s+/, $_);
if (!@whitespace_split) {
@@ -48,3 +48,21 @@ m 0
.if 2 > 1
outer
.endif
+
+.macro argtest1 first, second, third
+ mov r0, #\first
+ mov r0, #\second
+ mov r0, #\third
+.endm
+.macro argtest2 first second third
+ mov r1, #\first
+ mov r1, #\second
+ mov r1, #\third
+.endm
+
+argtest1 1, 2, 3
+argtest1 1 2 3
+argtest2 1, 2, 3
+argtest2 1 2 3
+argtest1 1 2 3 + 1
+argtest2 1 2 < 1 3