[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / AsmParser / at-pseudo-variable.s
blobb0966e137170326672b97209050dcf373ca0b756
1 # RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s
3 .macro A
4 add $1\@, %eax
5 .endm
7 .macro B
8 sub $1\@, %eax
9 .endm
12 # CHECK: addl $10, %eax
14 # CHECK: addl $11, %eax
16 # CHECK: subl $12, %eax
18 # CHECK: subl $13, %eax
20 # The following uses of \@ are undocumented, but valid:
21 .irpc foo,234
22 add $\foo\@, %eax
23 .endr
24 # CHECK: addl $24, %eax
25 # CHECK: addl $34, %eax
26 # CHECK: addl $44, %eax
28 .irp reg,%eax,%ebx
29 sub $2\@, \reg
30 .endr
31 # CHECK: subl $24, %eax
32 # CHECK: subl $24, %ebx
34 # Test that .irp(c) and .rep(t) do not increase \@.
35 # Only the use of A should increase \@, so we can test that it increases by 1
36 # each time.
38 .irpc foo,123
39 sub $\foo, %eax
40 .endr
43 # CHECK: addl $14, %eax
45 .irp reg,%eax,%ebx
46 sub $4, \reg
47 .endr
50 # CHECK: addl $15, %eax
52 .rept 2
53 sub $5, %eax
54 .endr
57 # CHECK: addl $16, %eax
59 .rep 3
60 sub $6, %eax
61 .endr
64 # CHECK: addl $17, %eax