Update release-README after completing the 2.43 release.
[binutils-gdb.git] / sim / testsuite / mips / r6-forbidden.s
blob6ce56d392d9ceb1483b2ba0f4608889e36d2416c
1 # mips r6 test for forbidden slot behaviour
2 # mach: mips32r6 mips64r6
3 # as: -mabi=eabi
4 # ld: -N -Ttext=0x80010000
5 # output: *\\nReservedInstruction at PC = *\\nprogram stopped with signal 4 (Illegal instruction).\\n
6 # xerror:
8 .include "testutils.inc"
10 setup
12 .set noreorder
14 .ent DIAG
15 DIAG:
17 writemsg "[1] Test if FS is ignored when branch is taken"
18 li $4, 0
19 beqzalc $4, L1
20 bc L2
22 L2:
23 fail
25 L1:
26 writemsg "[2] Test if FS is used when branch is not taken"
27 li $4, 1
28 blezc $4, L3
29 addiu $4, $4, 1
30 li $2, 2
31 beq $4, $2, L4
33 L3:
34 nop
35 fail
37 L4:
38 writemsg "[3] Test if FS causes an error when it contains a branch"
39 li $4, 3
40 beqzalc $4, L6
41 bc L5
43 L5:
44 nop
45 fail
47 L6:
48 #There is no passing condition here, all routes to the end indicate failure
49 fail
51 .end DIAG