[PATCH] D153233: clang: Add __builtin_elementwise_rint and nearbyint

Matt Arsenault via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 22 11:27:51 PDT 2023


arsenm added inline comments.


================
Comment at: clang/test/CodeGen/strictfp-elementwise-bulitins.cpp:190
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    [[ELT_TRUNC:%.*]] = tail call <4 x float> @llvm.canonicalize.v4f32(<4 x float> [[A]]) #[[ATTR4]]
+// CHECK-NEXT:    ret <4 x float> [[ELT_TRUNC]]
----------------
bob80905 wrote:
> I noticed a missing pattern here. Did you mean to write canonicalize instead of TRUNC?
This is just the generated check from the IR names. It doesn't matter, but there's a pre-existing "bug" where the debug value name is trunc for canonicalize.


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

https://reviews.llvm.org/D153233



More information about the cfe-commits mailing list