[PATCH] D59947: [NVPTX] Fix the codegen for llvm.round.

Artem Belevich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 28 15:36:59 PDT 2019


tra added inline comments.


================
Comment at: llvm/test/CodeGen/NVPTX/math-intrins.ll:77
 define float @round_float(float %a) {
-  ; CHECK: cvt.rni.f32.f32
+  ; CHECK: cvt.rzi.f32.f32
   %b = call float @llvm.round.f32(float %a)
----------------
Why do we end up with .rzi (round to nearest integer *in the direction of zero*) here? Wasn't this patch supposed to change rounding to be *away* from zero?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59947/new/

https://reviews.llvm.org/D59947





More information about the llvm-commits mailing list