]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/testsuite/sim/fr30/xchb.cgs
Initial creation of sourceware repository
[thirdparty/binutils-gdb.git] / sim / testsuite / sim / fr30 / xchb.cgs
1 # fr30 testcase for xchb @$Rj,Ri
2 # mach(): fr30
3
4 .include "testutils.inc"
5
6 START
7
8 .text
9 .global xchb
10 xchb:
11 ; Test xchb @$Rj,Ri
12 mvi_h_mem 0xdeadbeef,sp
13 mvi_h_gr 0xbeefdead,r0
14 set_cc 0x0f ; Condition codes are irrelevent
15 xchb @sp,r0
16 test_cc 1 1 1 1
17 test_h_gr 0xde,r0
18 test_h_mem 0xadadbeef,sp
19
20 pass