Re: [PATCH] match.pd: Fold pattern of round semantics.

2025-01-09 Thread Zhou Zhao
洲 wrote: Add Reviewer Richard Biener. -原始邮件- 发件人: "Zhou Zhao" 发送时间:2025-01-02 19:37:07 (星期四) 收件人: gcc-patches@gcc.gnu.org 抄送: xry...@xry111.site, i...@xen0n.name, chengl...@loongson.cn, xucheng...@loongson.cn, zhaoz...@loongson.cn 主题: [PATCH] match.pd: Fold pattern of round

Re: [PATCH] match.pd: Fold pattern of round semantics.

2025-01-09 Thread Richard Biener
t;>>>>>> Add Reviewer Richard Biener. > >>>>>>>> > >>>>>>>> > >>>>>>>>> -----原始邮件----- > >>>>>>>>> 发件人: "Zhou Zhao" > >>>>>>>>> 发

Re: [PATCH] match.pd: Fold pattern of round semantics.

2025-01-08 Thread Richard Biener
gt;>>>>> 发件人: "Zhou Zhao" > >>>>>>> 发送时间:2025-01-02 19:37:07 (星期四) > >>>>>>> 收件人: gcc-patches@gcc.gnu.org > >>>>>>> 抄送: xry...@xry111.site, i...@xen0n.name, chengl...@loongson.cn, > >>>>>>

Re: [PATCH] match.pd: Fold pattern of round semantics.

2025-01-08 Thread Zhou Zhao
...@xry111.site, i...@xen0n.name, chengl...@loongson.cn, xucheng...@loongson.cn, zhaoz...@loongson.cn 主题: [PATCH] match.pd: Fold pattern of round semantics. This patch implements 4 rules for semantics of round func in match.pd under -funsafe-math-optimizations: 1) (x-floor(x)) < (ceil(x)-x) ? floo

Re: [PATCH] match.pd: Fold pattern of round semantics.

2025-01-08 Thread Richard Biener
gt;>> 发送时间:2025-01-02 19:37:07 (星期四) > >>> 收件人: gcc-patches@gcc.gnu.org > >>> 抄送: xry...@xry111.site, i...@xen0n.name, chengl...@loongson.cn, > >>> xucheng...@loongson.cn, zhaoz...@loongson.cn > >>> 主题: [PATCH] match.pd: Fold pattern of round

Re: [PATCH] match.pd: Fold pattern of round semantics.

2025-01-08 Thread Zhou Zhao
.cn, zhaoz...@loongson.cn 主题: [PATCH] match.pd: Fold pattern of round semantics. This patch implements 4 rules for semantics of round func in match.pd under -funsafe-math-optimizations: 1) (x-floor(x)) < (ceil(x)-x) ? floor(x) : ceil(x) -> floor(x+0.5) 2) (x-floor(x)) >= (ceil(x)-x) ? ceil(x)

Re: [PATCH] match.pd: Fold pattern of round semantics.

2025-01-07 Thread Richard Biener
> > xucheng...@loongson.cn, zhaoz...@loongson.cn > > 主题: [PATCH] match.pd: Fold pattern of round semantics. > > > > This patch implements 4 rules for semantics of round func in match.pd under > > -funsafe-math-optimizations: > > 1) (x-floor(x)) < (ceil(x)-x) ? f

Re: [PATCH] match.pd: Fold pattern of round semantics.

2025-01-02 Thread 赵洲
Add Reviewer Richard Biener. > -原始邮件- > 发件人: "Zhou Zhao" > 发送时间:2025-01-02 19:37:07 (星期四) > 收件人: gcc-patches@gcc.gnu.org > 抄送: xry...@xry111.site, i...@xen0n.name, chengl...@loongson.cn, > xucheng...@loongson.cn, zhaoz...@loongson.cn > 主题: [PATCH]

[PATCH] match.pd: Fold pattern of round semantics.

2025-01-02 Thread Zhou Zhao
This patch implements 4 rules for semantics of round func in match.pd under -funsafe-math-optimizations: 1) (x-floor(x)) < (ceil(x)-x) ? floor(x) : ceil(x) -> floor(x+0.5) 2) (x-floor(x)) >= (ceil(x)-x) ? ceil(x) : floor(x) -> floor(x+0.5) 3) (ceil(x)-x) > (x-floor(x)) ? floor(x) : ceil(x) -> floor