[clang] [CIR] Use `cir.fcmp` op for AMDGPU builtins (PR #246004)

Henrich Lauko via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 4 03:40:15 PST 2026


================
@@ -15,6 +15,8 @@
 
 // CIR-LABEL: @_Z11test_logbfff
 // CIR: cir.call_llvm_intrinsic "frexp" {{.*}} : (!cir.float) -> {{.*}}
+// CIR: cir.fcmp one {{.*}} : !cir.float
+// CIR: cir.fcmp oeq {{.*}} : !cir.float
----------------
xlauko wrote:

The new `oeq` compare is only checked in CIR. Could you add a matching `// LLVM: fcmp{{.*}} oeq float %{{.*}}, 0.0` (and the double version) so both pipelines are shown to emit it?

https://github.com/llvm/llvm-project/pull/246004


More information about the cfe-commits mailing list