1# Blackfin testcase for SEQSTAT register 2# mach: bfin 3 4 .include "testutils.inc" 5 6 .macro seqstat_test val:req 7 imm32 R0, \val 8 SEQSTAT = R0; 9 R1 = SEQSTAT; 10 CC = R7 == R1; 11 IF !CC JUMP 1f; 12 .endm 13 14 start 15 16 # Writes to SEQSTAT should be ignored 17 R7 = SEQSTAT; 18 19 seqstat_test 0 20 seqstat_test 0x1 21 seqstat_test -1 22 seqstat_test 0xab11cd22 23 24 pass 251: fail 26