summary refs log tree commit diff stats
path: root/tests/tcg/tricore/asm/test_ld_bu.S
blob: 4a1f40c37bab6604e4fbefea38e86f139743bdae (plain) (blame)
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, test_data + 4, [+AREG_ADDR]4) # pre_inc
    TEST_LD(ld.bu, 2, 0xad, test_data + 4, [AREG_ADDR+]4) # post_inc

    TEST_PASSFAIL