]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/testsuite/sim/fr30/andh.cgs
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / sim / testsuite / sim / fr30 / andh.cgs
CommitLineData
3bf97905
DB
1# fr30 testcase for andh $Rj,@$Ri
2# mach(): fr30
3
4 .include "testutils.inc"
5
6 START
7
8 .text
9 .global andh
10andh:
11 ; Test andh $Rj,@$Ri
12 mvi_h_gr 0xaaaaaaaa,r7
13 mvi_h_mem 0x55555555,sp
14 set_cc 0x0b ; Set mask opposite of expected
15 andh r7,@sp
16 test_cc 0 1 1 1
17 test_h_mem 0x00005555,sp
18
19 mvi_h_mem 0xffffffff,sp
20 set_cc 0x04 ; Set mask opposite of expected
21 andh r7,@sp
22 test_cc 1 0 0 0
23 test_h_mem 0xaaaaffff,sp
24
25 mvi_h_mem 0x00ffffff,sp
26 set_cc 0x0d ; Set mask opposite of expected
27 andh r7,@sp
28 test_cc 0 0 0 1
29 test_h_mem 0x00aaffff,sp
30
31 pass