summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/gas/testsuite/gas/all/cond.s
diff options
context:
space:
mode:
Diffstat (limited to 'binutils-2.25/gas/testsuite/gas/all/cond.s')
-rw-r--r--binutils-2.25/gas/testsuite/gas/all/cond.s92
1 files changed, 92 insertions, 0 deletions
diff --git a/binutils-2.25/gas/testsuite/gas/all/cond.s b/binutils-2.25/gas/testsuite/gas/all/cond.s
new file mode 100644
index 00000000..164e055b
--- /dev/null
+++ b/binutils-2.25/gas/testsuite/gas/all/cond.s
@@ -0,0 +1,92 @@
+ .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
+
+ .p2align 5,0