1 ; Test error message for mul insns at locations likely to trig
4 ; { dg-do assemble { target cris-*-* } }
5 ; { dg-options "--em=criself" }
7 ; First, .text isn't dword-aligned by default.
9 muls.w $r1,$r4 ; { dg-error "align" }
11 muls.b $r1,$r4 ; { dg-error "align" }
12 mulu.d $r1,$r4 ; { dg-error "align" }
14 ; Neither are other code sections, aligned to word.
15 .section .text.1,"ax",@progbits
17 muls.w $r1,$r4 ; { dg-error "align" }
19 mulu.b $r1,$r4 ; { dg-error "align" }
20 muls.d $r1,$r4 ; { dg-error "align" }
22 ; Now, a section aligned to dword. Errors for certain relative
24 .section .text.2,"ax",@progbits
29 mulu.w $r1,$r4 ; { dg-error "align" }
31 ; For good measure, a cache-line-aligned section.
32 .section .text.3,"ax",@progbits
40 mulu.b $r1,$r4 ; { dg-error "align" }
43 ; Last, make sure typical alignment use by a fixed gcc passes.
44 .section .text.4,"ax",@progbits