]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/testsuite/sim/sh64/compact/and.cgs
daily update
[thirdparty/binutils-gdb.git] / sim / testsuite / sim / sh64 / compact / and.cgs
1 # sh testcase for and $rm64, $rn64 -*- Asm -*-
2 # mach: all
3 # as: -isa=shcompact
4 # ld: -m shelf32
5
6 .include "compact/testutils.inc"
7
8 start
9
10 .global and
11 and:
12 mov #1, r1
13 mov #7, r2
14 rotr r2
15 rotr r2
16 and r1, r2
17
18 # R1 & R2 = 1.
19 assert r2, #1
20
21 another:
22 mov #192, r1
23 mov #0, r2
24 and r1, r2
25
26 # R1 & R2 = 0.
27 assert r2, #0
28
29 okay:
30 pass
31
32 wrong:
33 fail