This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/81317] builtin_vec_ld fails for powerpc with altivec
- From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 11 Jul 2017 18:40:01 +0000
- Subject: [Bug target/81317] builtin_vec_ld fails for powerpc with altivec
- Auto-submitted: auto-generated
- References: <bug-81317-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81317
Bill Schmidt <wschmidt at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |wschmidt at gcc dot gnu.org
--- Comment #12 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
(In reply to Segher Boessenkool from comment #11)
>
> __builtin_altivec_vsubuhm (cbh, pw_cj);
>
>
> is transformed to
>
>
> = cbh - pw_cj;
>
>
> and that blows up.
Yeah, well...the original source is obviously wrong, since
__builtin_altivec_vsubuhm produces a result that is thrown away.
We should avoid optimizing in this situation, but it's an ice-on-invalid.