mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
26 lines
342 B
ArmAsm
26 lines
342 B
ArmAsm
|
# Blackfin testcase for SYSCFG register
|
||
|
# mach: bfin
|
||
|
|
||
|
.include "testutils.inc"
|
||
|
|
||
|
.macro syscfg_test val:req
|
||
|
imm32 R0, \val
|
||
|
R0 = SYSCFG;
|
||
|
SYSCFG = R0;
|
||
|
R1 = SYSCFG;
|
||
|
CC = R0 == R1;
|
||
|
IF !CC JUMP 1f;
|
||
|
.endm
|
||
|
|
||
|
start
|
||
|
|
||
|
syscfg_test 0
|
||
|
syscfg_test 1
|
||
|
syscfg_test -1
|
||
|
syscfg_test 0x12345678
|
||
|
# leave in sane state
|
||
|
syscfg_test 0x30
|
||
|
|
||
|
pass
|
||
|
1: fail
|