Upload Tizen:Base source
[external/binutils.git] / gas / testsuite / gas / mips / relax-swap2.s
1 # Source file used to test branch likely relaxation with swapping.
2
3         .text
4 foo:
5
6         move    $2, $4
7         beql    $2, $3, foo
8         move    $2, $4
9         beql    $2, $3, bar
10         move    $2, $4
11         beql    $4, $5, foo
12         move    $2, $4
13         beql    $4, $5, bar
14
15         addiu   $2, $4, 1
16         beql    $2, $3, foo
17         addiu   $2, $4, 1
18         beql    $2, $3, bar
19         addiu   $2, $4, 1
20         beql    $4, $5, foo
21         addiu   $2, $4, 1
22         beql    $4, $5, bar
23
24         lw      $2, ($4)
25         beql    $2, $3, foo
26         lw      $2, ($4)
27         beql    $2, $3, bar
28         lw      $2, ($4)
29         beql    $4, $5, foo
30         lw      $2, ($4)
31         beql    $4, $5, bar
32
33         sw      $2, ($4)
34         beql    $2, $3, foo
35         sw      $2, ($4)
36         beql    $2, $3, bar
37         sw      $2, ($4)
38         beql    $4, $5, foo
39         sw      $2, ($4)
40         beql    $4, $5, bar
41
42         teq     $2, $4
43         beq     $4, $5, foo
44         teq     $2, $4
45         beq     $4, $5, bar
46
47         .space  0x20000         # to make a 128kb loop body
48 bar:
49 # Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
50         .space  8