Hi,yujie:
When using this patch to compile test cases, ICE will be reported.
test.c
float
foo(float a, float b)
{
return a / b;
}
# ./gcc/cc1 test.c -o - -O2 -ffast-math -mrecip
recip.c: 在函数‘foo’中:
recip.c:5:1: 错误:无法识别的指令:
5 | }
| ^
(insn 9 8 10 2 (set (reg:SF 84)
v1 -> v2:
- Rebased to master.
- Specifies "(void)" for the empty parameter list of loongarch_global_init.
gcc/ChangeLog:
* config/loongarch/genopts/loongarch.opt.in: Mark -m[no-]recip as
aliases to -mrecip={all,none}.
* config/loongarch/loongarch.opt: Same.
* config/loongarch/loongarch-def.h: Modify ABI condition macros for
convenience.
*
gcc/ChangeLog:
* config/loongarch/genopts/loongarch.opt.in: Mark -m[no-]recip as
aliases to -mrecip={all,none}.
* config/loongarch/loongarch.opt: Same.
* config/loongarch/loongarch-def.h: Modify ABI condition macros for
convenience.
*