[PATCH, alpha]: Fix PR 22093, Unaligned access to HI values causes unrecognizable insn error

Uros Bizjak ubizjak@gmail.com
Wed Sep 30 09:17:00 GMT 2009


Hello!

For some reason, message was truncated...

>
> So, we should force the operand of plus RTX into register.
>
> Fixed gcc produces:
>
>        lda $2,2($31)
>        lda $1,x
>        lda $4,7($1)
>        ldq_u $3,6($1)
>        inswl $2,$4,$2
>        mskwl $3,$4,$3
>        bis $2,$3,$2
>        stq_u $2,6($1)
>        ret $31,($26),1
>
> which is just what we expect.
>
> Tested on alphaev68-pc-linux-gnu and by eyeballing generated code with #define
>

Tested on alphaev68-pc-linux-gnu and by eyeballing generated code with
#define TARGET_BIG_ENDIAN set to 1 in alpha.h.

Patch was committed to SVN under obvious rule, will be committed to
4.3 and 4.4 soon.

Uros.



More information about the Gcc-patches mailing list