summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/gas/testsuite/gas/all/cond.s
blob: f0bf67ac8cbab2b146560cc3cb0c2edc4322f843 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
	.if	0
	.if	1
	.endc
	.long	0
	.if	0
	.long	1
	.endc
	.else
	.if	1
	.endc
	.long	2
	.if	0
	.long	3
	.else
	.long	4
	.endc
	.endc

	.if	0
	.long	5
	.elseif	1
	.if	0
	.long	6
	.elseif	1
	.long	7
	.endif
	.elseif	1
	.long	8
	.else
	.long	9
	.endif

	.comm	c, 1
	.ifndef c
	.err
	.endif

	.if	x <> x
	.err
	.endif
	.equiv	y, x
	.ifndef	y
	.err
	.endif
	.if	x <> y
	.err
	.endif
	.equiv	z, x
	.if	y <> z
	.err
	.endif

	.equiv	a, y + 1
	.equiv	b, z - 1
	.if	a == x
	.err
	.endif
	.if	a - 1 <> x
	.err
	.endif
	.if	a <> b + 2
	.err
	.endif
	.if	a - b <> 2
	.err
	.endif

	.equiv	x, 0
	.if	y
	.err
	.elseif	y
	.err
	.endif

	.macro	m x, y
	.ifb \x
	.long	-1
	.else
	.long	\x
	.endif
	.ifnb \y
	.long	\y
	.else
	.long	-1
	.endif
	.endm
	m	,
	m	, 10
	m	11,
	m	12, 13

	.if 0
#define x "m" \
	(x)
#define y \
	"m" \
	(y)
#define z \
	((z) \
	 + 1)
	.endif

	.p2align 5,0