[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:14 PST 2026
================
@@ -360,6 +360,86 @@ __device__ void test_fcmp_f64(unsigned long* out, double a, double b) {
*out = __builtin_amdgcn_fcmp(a, b, 3 + 3);
}
+// CIR-LABEL: @_Z19test_fcmp_f32_falsePmff
----------------
xlauko wrote:
Could you add `uno` (8) and `une` (14) cases? Those are where `cir::FCmpOpKind` numbering differs from `llvm::CmpInst::Predicate`, so they're the cases most likely to break if this switch is ever folded into a cast. `oeq`, `ogt`, `oge` and `olt` also have no test now.
https://github.com/llvm/llvm-project/pull/246004
More information about the cfe-commits
mailing list