]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/testsuite/sim/sh64/compact/and.cgs
This commit was manufactured by cvs2svn to create branch
[thirdparty/binutils-gdb.git] / sim / testsuite / sim / sh64 / compact / and.cgs
CommitLineData
cbb38b47
BE
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
11and:
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
21another:
22 mov #192, r1
23 mov #0, r2
24 and r1, r2
25
26 # R1 & R2 = 0.
27 assert r2, #0
28
29okay:
30 pass
31
32wrong:
33 fail