[PATCH] D137655: Expand fminimum and fmaximum into a pair of selects
Goran Flegar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 9 02:16:26 PST 2022
gflegar added a comment.
In D137655#3915463 <https://reviews.llvm.org/D137655#3915463>, @nikic wrote:
> Doesn't this handle signed zero incorrectly?
I believe it is:
For `FMINIMUM`:
Tmp1 = -0.0, Tmp2 = +0.0 => Tmp1 ULT Tmp2 == True => Tmp3 = Tmp1 = -0.0; Tmp2 UO Tmp2 = False => Result = Tmp3 = -0.0
Tmp1 = +0.0, Tmp2 = -0.0 => Tmp1 ULT Tmp2 == False => Tmp3 = Tmp2 = -0.0; Tmp2 UO Tmp2 = False => Result = Tmp3 = -0.0
For `FMAXIMUM`:
Tmp1 = -0.0, Tmp2 = +0.0 => Tmp1 UGT Tmp2 == False => Tmp3 = Tmp2 = +0.0; Tmp2 UO Tmp2 = False => Result = Tmp3 = +0.0
Tmp1 = +0.0, Tmp2 = -0.0 => Tmp1 UGT Tmp2 == True => Tmp3 = Tmp1 = +0.0; Tmp2 UO Tmp2 = False => Result = Tmp3 = +0.0
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137655/new/
https://reviews.llvm.org/D137655
More information about the llvm-commits
mailing list