[clang] [CIR][SPIR-V] Dispatch AMDGPU builtins on AMDGCN-flavored SPIR-V (PR #222018)

Arseniy Obolenskiy via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 1 01:41:31 PDT 2026


================
@@ -100,7 +101,7 @@ static mlir::Value emitLogbBuiltin(CIRGenFunction &cgf, const CallExpr *e,
   mlir::Value inf = builder.getConstant(loc, cir::FPAttr::get(srcTy, infVal));
 
   mlir::Value fabsNegInf =
-      builder.createCompare(loc, cir::CmpOpKind::ne, fabs, inf);
+      builder.createCompare(loc, cir::CmpOpKind::one, fabs, inf);
----------------
aobolensk wrote:

It is a separate issue indeed, I discovered it while side by side comparison with classic codegen

Removed it here, I'm gonna mention the separate PR here in the next comment

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


More information about the cfe-commits mailing list