aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg/tricore/test_ld_bu.S
blob: ff9dac128b0ef53a86ca80a877cb1d869032c2f3 (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.bu, 1, 0xff, MEM_BASE_ADDR + 4, [+AREG_ADDR]4) # pre_inc
    TEST_LD(ld.bu, 2, 0xad, MEM_BASE_ADDR + 4, [AREG_ADDR+]4) # post_inc

    TEST_PASSFAIL