[clang] [clang] constexpr `__builtin_elementwise_abs` support (PR #152497)

via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 14 01:46:55 PDT 2025


================
@@ -66,7 +66,7 @@ void test_builtin_elementwise_abs(float f1, float f2, double d1, double d2,
   // CHECK-NEXT: call i32 @llvm.abs.i32(i32 [[IA1]], i1 false)
   b = __builtin_elementwise_abs(int_as_one);
 
-  // CHECK:   call i32 @llvm.abs.i32(i32 -10, i1 false)
+  // CHECK:   store i32 %elt.abs11, ptr @b, align 4
   b = __builtin_elementwise_abs(-10);
----------------
Mr-Anyone wrote:

I have added a few floating point test below. 

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


More information about the cfe-commits mailing list