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

--- Comment #5 from Jose E. Marchesi <jemarch at gcc dot gnu.org> ---
My point is that compiling your reproducer

  short ret_int ();
  void arg_int (int);

  void foo () {
     arg_int(ret_int ());
  }

with -O2 -mcpu=v4 results in:

        .file   "foo.c"
        .text
        .align  3
        .global foo
        .type   foo, @function
foo:
        call    ret_int
        w1 = (s16) w0
        call    arg_int
        exit
        .size   foo, .-foo
        .ident  "GCC: (GNU) 16.0.1 20260401 (experimental)"

So I don't know how you got:

foo:
        call    ret_int
        r1 = r0
        call    arg_int
        exit

Reply via email to