1
; Test error message for mul insns at locations likely to trig
4
; { dg-do assemble { target cris-*-* } }
6
; First, .text isn't dword-aligned by default.
8
muls.w $r1,$r4 ; { dg-error "align" }
10
muls.b $r1,$r4 ; { dg-error "align" }
11
mulu.d $r1,$r4 ; { dg-error "align" }
13
; Neither are other code sections, aligned to word.
14
.section .text.1,"ax",@progbits
16
muls.w $r1,$r4 ; { dg-error "align" }
18
mulu.b $r1,$r4 ; { dg-error "align" }
19
muls.d $r1,$r4 ; { dg-error "align" }
21
; Now, a section aligned to dword. Errors for certain relative
23
.section .text.2,"ax",@progbits
28
mulu.w $r1,$r4 ; { dg-error "align" }
30
; For good measure, a cache-line-aligned section.
31
.section .text.3,"ax",@progbits
39
mulu.b $r1,$r4 ; { dg-error "align" }
42
; Last, make sure typical alignment use by a fixed gcc passes.
43
.section .text.4,"ax",@progbits