xref: /qemu/tests/tcg/tricore/asm/test_ld_h.S (revision 2b8e2992c3c9aa6bee3dd23e2137a0923f7dc0aa)
16e34f54dSBastian Koppelmann#include "macros.h"
26e34f54dSBastian Koppelmann.data
36e34f54dSBastian Koppelmanntest_data:
46e34f54dSBastian Koppelmann    .word 0xaffedead
56e34f54dSBastian Koppelmann    .word 0x001122ff
66e34f54dSBastian Koppelmann.text
76e34f54dSBastian Koppelmann.global _start
86e34f54dSBastian Koppelmann_start:
96e34f54dSBastian Koppelmann#                               expect. addr reg val after load
106e34f54dSBastian Koppelmann#              insn  num expect. load value |    pattern for loading
116e34f54dSBastian Koppelmann#                |    |     |               |          |
12*2b8e2992SBastian Koppelmann    TEST_LD    (ld.h, 1, 0xffffaffe, test_data, [AREG_ADDR]2)
13*2b8e2992SBastian Koppelmann    TEST_LD_SRO(ld.h, 2, 0x000022ff, test_data, [AREG_ADDR]4)
146e34f54dSBastian Koppelmann
156e34f54dSBastian Koppelmann    TEST_PASSFAIL
16