| 1 | % { dg-do assemble { target mmix-*-* } } |
| 2 | |
| 3 | # Test that we handle COMM-type symbols with base-plus-offset relocs, but |
| 4 | # that we don't merge ones that may be separately merged with other |
| 5 | # symbols at link-time. Likewise for weak symbols. |
| 6 | .comm comm_symbol1,4,4 |
| 7 | .lcomm comm_symbol3,4 |
| 8 | GREG comm_symbol1 |
| 9 | GREG comm_symbol3 |
| 10 | GREG xx |
| 11 | .weak xx |
| 12 | xx: |
| 13 | LDA $47,yy % { dg-error "no suitable GREG definition" "" } |
| 14 | LDA $46,xx |
| 15 | LDA $42,comm_symbol1 |
| 16 | LDA $43,comm_symbol2 % { dg-error "no suitable GREG definition" "" } |
| 17 | LDA $44,comm_symbol3 |
| 18 | LDA $45,comm_symbol4 |
| 19 | yy: |
| 20 | .comm comm_symbol2,4,4 |
| 21 | .lcomm comm_symbol4,4 |