arc/nps400: Add new instructions
[deliverable/binutils-gdb.git] / gas / testsuite / gas / all / cond.s
CommitLineData
252b5132
RH
1 .if 0
2 .if 1
3 .endc
4 .long 0
5 .if 0
6 .long 1
7 .endc
8 .else
9 .if 1
10 .endc
11 .long 2
12 .if 0
13 .long 3
14 .else
15 .long 4
16 .endc
17 .endc
61b96bb4
AM
18
19 .if 0
20 .long 5
21 .elseif 1
22 .if 0
23 .long 6
24 .elseif 1
25 .long 7
26 .endif
27 .elseif 1
28 .long 8
29 .else
30 .long 9
31 .endif
26aca5f6 32
92757bc9
JB
33 .comm c, 1
34 .ifndef c
35 .err
36 .endif
37
2e1e12b1 38 .if x <> x
92757bc9
JB
39 .err
40 .endif
2e1e12b1
JB
41 .equiv y, x
42 .ifndef y
9497f5ac 43 .err
2e1e12b1
JB
44 .endif
45 .if x <> y
46 .err
47 .endif
48 .equiv z, x
49 .if y <> z
50 .err
51 .endif
52
53 .equiv a, y + 1
54 .equiv b, z - 1
55 .if a == x
56 .err
57 .endif
58 .if a - 1 <> x
59 .err
60 .endif
61 .if a <> b + 2
62 .err
63 .endif
64 .if a - b <> 2
65 .err
66 .endif
67
68 .equiv x, 0
69 .if y
70 .err
71 .elseif y
9497f5ac
NC
72 .err
73 .endif
74
26aca5f6
JB
75 .macro m x, y
76 .ifb \x
77 .long -1
78 .else
79 .long \x
80 .endif
81 .ifnb \y
82 .long \y
83 .else
84 .long -1
85 .endif
86 .endm
87 m ,
88 m , 10
89 m 11,
90 m 12, 13
91
e74211b6
JB
92 .if 0
93#define x "m" \
94 (x)
95#define y \
96 "m" \
97 (y)
98#define z \
99 ((z) \
100 + 1)
101 .endif
102
252b5132 103 .p2align 5,0
This page took 0.671248 seconds and 4 git commands to generate.