[PATCH] D83937: [Power] Set the mayRaiseFPException for FCMPUS/FCMPUD

Qiu Chaofan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 1 20:52:42 PDT 2020


qiucf added a comment.

  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.


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