]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/testsuite/sim/fr30/btstl.cgs
Initial creation of sourceware repository
[thirdparty/binutils-gdb.git] / sim / testsuite / sim / fr30 / btstl.cgs
1 # fr30 testcase for btstl $Rj,@$Ri
2 # mach(): fr30
3
4 .include "testutils.inc"
5
6 START
7
8 .text
9 .global btstl
10 btstl:
11 ; Test btstl $Rj,@$Ri
12 mvi_h_mem 0x55555555,sp
13 set_cc 0x0b ; Set mask opposite of expected
14 btstl 0x0a,@sp
15 test_cc 0 1 1 1
16 test_h_mem 0x55555555,sp
17
18 mvi_h_mem 0xffffffff,sp
19 set_cc 0x0c ; Set mask opposite of expected
20 btstl 0x0a,@sp
21 test_cc 0 0 0 0
22 test_h_mem 0xffffffff,sp
23
24 mvi_h_mem 0x5effffff,sp
25 set_cc 0x0e ; Set mask opposite of expected
26 btstl 0x07,@sp
27 test_cc 0 0 1 0
28 test_h_mem 0x5effffff,sp
29
30 pass