diff options
Diffstat (limited to 'gas/testsuite/gas/all/cond.s')
-rw-r--r-- | gas/testsuite/gas/all/cond.s | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/gas/testsuite/gas/all/cond.s b/gas/testsuite/gas/all/cond.s index ba4bd6ca612a..164e055b12bf 100644 --- a/gas/testsuite/gas/all/cond.s +++ b/gas/testsuite/gas/all/cond.s @@ -29,4 +29,64 @@ .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 |