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

--- Comment #249 from Oleg Endo <olegendo at gcc dot gnu.org> ---
(In reply to Kazumoto Kojima from comment #248)
> Created attachment 59102 [details]
> a reduced C test case for the wrong code problem c#192
> 
> typedef struct { int c[64]; } obj;
> 
> extern void bar (int, int, int, int, obj *);
> void foo (obj *p)
> {
>   obj bobj = *p;
>   bar (0, 0, 0, 0, &bobj);
> }
> 
> With "-O2 -m4 -mlra -ffixed-r7 -ffixed-r8 -ffixed-r9 -ffixed-r10 -ffixed-r11
> -ffixed-r12 -ffixed-r13", it's compiled to
> 

Very nice.  Can you please add it as a test case under
gcc/testsuite/gcc.target/sh/torture on your github repo?

Reply via email to