GAS/MIPS: Add `-mfix-r5900' option for the R5900 short loop erratum
[deliverable/binutils-gdb.git] / gas / testsuite / gas / mips / r5900-no-fix.s
1 .text
2
3 .ent test_no_mfix_r5900
4 test_no_mfix_r5900:
5 # Test that the short loop fix with 3 loop instructions
6 # is not applied with `-mno-fix-r5900'.
7 li $3, 300
8 short_loop_no_mfix_r5900:
9 addi $3, -1
10 addi $4, -1
11 # A NOP will not be inserted in the branch delay slot.
12 bne $3, $0, short_loop_no_mfix_r5900
13
14 li $4, 3
15
16 .space 8
17 .end test_no_mfix_r5900
This page took 0.03092 seconds and 4 git commands to generate.