[clang] [CIR][X86] Add support for roundpd, roundps, roundsd, roundss builtins (PR #215787)

Borys Perski via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 13 12:51:01 PDT 2026


================
@@ -0,0 +1,164 @@
+// RUN: %clang_cc1 -frounding-math -flax-vector-conversions=none -ffreestanding %s -triple=x86_64-unknown-linux -target-feature +sse4.1 -fclangir -emit-cir -o %t.cir
+// RUN: FileCheck --check-prefix=CIR --input-file=%t.cir %s
+// RUN: %clang_cc1 -frounding-math -flax-vector-conversions=none -ffreestanding %s -triple=x86_64-unknown-linux -target-feature +sse4.1 -fclangir -emit-llvm -o %t.ll
+// RUN: FileCheck --check-prefixes=LLVM --input-file=%t.ll %s
+// RUN: %clang_cc1 -frounding-math -flax-vector-conversions=none -ffreestanding %s -triple=x86_64-unknown-linux -target-feature +sse4.1 -emit-llvm -o %t.ll
+// RUN: FileCheck --check-prefixes=OGCG --input-file=%t.ll %s
----------------
borysperski wrote:

Thanks, done.

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


More information about the cfe-commits mailing list