[clang] [llvm] [X86] EmitX86BuiltinExpr - attempt to convert SSE41/AVX1 roundps/d/ss/sd builtins to regular rounding modes (PR #171227)
Timm Baeder via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 8 21:13:57 PST 2025
================
@@ -75,6 +75,80 @@ static Value *getMaskVecValue(CodeGenFunction &CGF, Value *Mask,
return MaskVec;
}
+static Value *emitX86Round(CodeGenFunction &CGF, Value *X, unsigned M) {
+ unsigned RoundingMask = 0b11;
+ unsigned UpdatePEBit = 0b100;
+ unsigned UseMXCSRBit = 0b1000;
+
+ unsigned roundingMode = M & RoundingMask;
----------------
tbaederr wrote:
Local variables start with an uppercase letter.
https://github.com/llvm/llvm-project/pull/171227
More information about the llvm-commits
mailing list