aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg/tricore/test_ld_h.S
blob: d3c157a0462713cd9ba2aa9c346d0230cc9390d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "macros.h"
.data
test_data:
    .word 0xaffedead
    .word 0x001122ff
.text
.global _start
_start:
#                               expect. addr reg val after load
#              insn  num  expect. load value |          pattern for loading
#                |    |     |                |              |
    TEST_LD    (ld.h, 1, 0xffffaffe, MEM_BASE_ADDR, [AREG_ADDR]2)
    TEST_LD_SRO(ld.h, 2, 0x000022ff, MEM_BASE_ADDR, [AREG_ADDR]4)

    TEST_PASSFAIL