Commit | Line | Data |
---|---|---|
252b5132 | 1 | # Source file used to test the beq macro. |
63ba7a1c | 2 | .text |
252b5132 RH |
3 | text_label: |
4 | beq $4,$5,text_label | |
5 | beq $4,0,text_label | |
6 | beq $4,1,text_label | |
7 | beq $4,0x8000,text_label | |
8 | beq $4,-0x8000,text_label | |
9 | beq $4,0x10000,text_label | |
10 | beq $4,0x1a5a5,text_label | |
11 | ||
12 | # bne is handled by the same code as beq. Just sanity check. | |
13 | bne $4,0,text_label | |
14 | ||
252b5132 RH |
15 | # Test that branches which overflow are converted to jumps. |
16 | .space 0x20000 | |
17 | b text_label | |
18 | bal text_label | |
19 | ||
cb56d3d3 | 20 | # Branch to an external label. |
6f171daa AO |
21 | # b external_label |
22 | # bal external_label | |
cb56d3d3 | 23 | |
9bb28706 | 24 | # Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ... |
df58fc94 | 25 | .align 2 |
9bb28706 | 26 | .space 8 |