xref: /netbsd-src/external/gpl3/gdb.old/dist/sim/testsuite/m32r/ldh-d.cgs (revision 4439cfd0acf9c7dc90625e5cd83b2317a9ab8967)
1# m32r testcase for ldh $dr,@($slo16,$sr)
2# mach(): m32r m32rx
3
4	.include "testutils.inc"
5
6	start
7
8	.global ldh_d
9ldh_d:
10	mvaddr_h_gr r4, data_loc
11	mvi_h_gr    r5, 0
12
13	ldh r5, @(#2, r4)
14
15	test_h_gr r5, 0x5678 ; big endian processor
16
17	pass
18
19data_loc:
20	.word 0x12345678
21
22