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: 7 8 .include "testutils.inc" 9 10 setup 11 12 .set noreorder 13 14 .ent DIAG 15DIAG: 16 17 writemsg "[1] Test if FS is ignored when branch is taken" 18 li $4, 0 19 beqzalc $4, L1 20 bc L2 21 22L2: 23 fail 24 25L1: 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 32 33L3: 34 nop 35 fail 36 37L4: 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 42 43L5: 44 nop 45 fail 46 47L6: 48 #There is no passing condition here, all routes to the end indicate failure 49 fail 50 51 .end DIAG 52