Commit | Line | Data |
---|---|---|
5ef6758f HPN |
1 | ; Check that invalid PIC reloc and instruction size combinations are |
2 | ; recognized. Note that sizes of byte operands are not error-checked for | |
3 | ; not being in 16-bit range, so no error is recognized for a 16-bit operand. | |
4 | ||
5 | ; { dg-do assemble { target cris-*-* } } | |
6 | ; { dg-options "--pic --no-underscore --em=criself" } | |
7 | ||
8 | .syntax no_register_prefix | |
9 | .text | |
10 | start: | |
11 | move.b extsym:GOTPLT16,r4 ; { dg-error "PIC relocation size does not match" "" { xfail *-*-* } } | |
12 | move.b extsym12:GOTPLT,r5 ; { dg-error "PIC relocation size does not match" } | |
13 | move.w extsym2:GOTPLT,r5 ; { dg-error "PIC relocation size does not match" } | |
14 | move.d extsym3:GOTPLT16,r6 ; { dg-error "PIC relocation size does not match" } | |
15 | move extsym4:GOTPLT16,srp ; { dg-error "PIC relocation size does not match" } | |
16 | move.b extsym5:GOT16,r4 ; { dg-error "PIC relocation size does not match" "" { xfail *-*-* } } | |
17 | move.b extsym15:GOT,r7 ; { dg-error "PIC relocation size does not match" } | |
18 | move.w extsym6:GOT,r5 ; { dg-error "PIC relocation size does not match" } | |
19 | move.d extsym7:GOT16,r6 ; { dg-error "PIC relocation size does not match" } | |
20 | move extsym8:GOT16,srp ; { dg-error "PIC relocation size does not match" } |