================
@@ -2210,3 +2210,10 @@ double my_roundeven(double x) {
// OGCG: define{{.*}}@my_roundeven(
// OGCG: call double @llvm.roundeven.f64(
}
+
+int fpclassify(float f) {
+ return __builtin_fpclassify(0, 1, 2, 3, 4, f);
+ // CIR: %{{.*}} = cir.is_fp_class %{{.*}}, fcNan : (!cir.float) -> !cir.bool
----------------
andykaylor wrote:
This needs to be expanded to check all the operations produced.
https://github.com/llvm/llvm-project/pull/183893
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits