https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119325

--- Comment #18 from rguenther at suse dot de <rguenther at suse dot de> ---
On Tue, 18 Mar 2025, ams at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119325
> 
> --- Comment #16 from Andrew Stubbs <ams at gcc dot gnu.org> ---
> Perhaps:
> 
> asm ("mov %0, %1" : "=v"(__from), "v"(__to));
> 
> or maybe
> 
> asm ("; no-op cast %0" : "=v"(__from), "0"(__to));
> 
> 
> Is there a downside to that in the optimizer(s)?

well, it's a black box for __from and __to, on GIMPLE also for
memory IIRC.

But yes, I'd say try it and look at generate code?

Reply via email to