[PATCH] D83937: [Power] Set the mayRaiseFPException for FCMPUS/FCMPUD
Qing Shan Zhang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 3 02:50:57 PDT 2020
steven.zhang planned changes to this revision.
steven.zhang added a comment.
In D83937#2251316 <https://reviews.llvm.org/D83937#2251316>, @qiucf wrote:
> define i32 @test(double %a, double %b) {
> entry:
> %r = fcmp ogt double %a, %b
> %g = zext i1 %r to i32
> ret i32 %g
> }
>
> Print MIR:
>
> renamable $cr0 = FCMPUD killed renamable $f1, killed renamable $f2 # Without mayRaise set
> renamable $cr0 = nofpexcept FCMPUD killed renamable $f1, killed renamable $f2 # With mayRaise set
>
> You can create a dedicated test file for fp-exception bit, so that we can re-check all fp-exception bits in instruction definitions.
Thanks for the comments. I will update it.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83937/new/
https://reviews.llvm.org/D83937
More information about the llvm-commits
mailing list