This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]