diff options
Diffstat (limited to 'sim/testsuite/m32r/lduh.cgs')
-rw-r--r-- | sim/testsuite/m32r/lduh.cgs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sim/testsuite/m32r/lduh.cgs b/sim/testsuite/m32r/lduh.cgs new file mode 100644 index 00000000000..a03bbee240d --- /dev/null +++ b/sim/testsuite/m32r/lduh.cgs @@ -0,0 +1,22 @@ +# m32r testcase for lduh $dr,@$sr +# mach(): m32r m32rx + + .include "testutils.inc" + + start + + .global lduh +lduh: + mvaddr_h_gr r4, data_loc + mvi_h_gr r5, 0 + + lduh r5, @r4 + + test_h_gr r5, 0x8010 ; big endian processor + + pass + +data_loc: + .word 0x8010f020 + + pass |