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

--- Comment #8 from 刘袋鼠 <crazylht at gmail dot com> ---
(In reply to H.J. Lu from comment #5)
> Please take a look at
> 
> https://github.com/hjl-tools/gcc/commit/
> a56b4a49b2617a31365bdb9c44340695c31d56e8

How did you handle MOV reg(SCmode) <---- CONST_RTX(SCmode), I got an error
report bellow insn wasn't recognized.
(insn 31 16 17 2 (set (reg:SC 91 [ c ])
        (concat:SC (const_double:SF 0.0 [0x0.0p+0])
            (const_double:SF 0.0 [0x0.0p+0]))) "complex.c":5:5 -1
     (nil))

reference patch is at
https://github.com/algebra84/gcc/commit/2dcce0fcdddd964b4d3034344a8c242edf6e6d0c

Simple case bellow will reproduce problem:

cat complex.c
_Complex float
foo (_Complex float a, _Complex float b)
{
  _Complex float c,d;
  c = a + b;
  return c;
}

Reply via email to