[PATCH] D112932: Use llvm.is_fpclass to implement FP classification functions

Kevin P. Neal via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 13 10:53:14 PST 2022


kpn added inline comments.


================
Comment at: clang/test/CodeGen/strictfp_builtins.c:160
+// CHECK-NEXT:    [[TMP1:%.*]] = call double @llvm.fabs.f64(double [[TMP0]]) #[[ATTR5]]
+// CHECK-NEXT:    [[ISINF:%.*]] = call i1 @llvm.experimental.constrained.fcmp.f64(double [[TMP1]], double 0x7FF0000000000000, metadata !"oeq", metadata !"fpexcept.strict") #[[ATTR4]]
 // CHECK-NEXT:    [[TMP2:%.*]] = bitcast double [[TMP0]] to i64
----------------
Is there a way to test that we're using llvm.is.fpclass() in this case?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D112932



More information about the cfe-commits mailing list