Author: bursow
Date: 2025-08-31T15:57:40Z
New Revision: d63dd5eed0ea2f34bcf8b178211f8771ea75dec7

URL: 
https://github.com/llvm/llvm-project/commit/d63dd5eed0ea2f34bcf8b178211f8771ea75dec7
DIFF: 
https://github.com/llvm/llvm-project/commit/d63dd5eed0ea2f34bcf8b178211f8771ea75dec7.diff

LOG: feat: Add AVX512 support for constant interpreter test (#156227)

Adds test coverage for `fexperimental-new-constant-interpreter` to
`avx512cd-builtins.c` and `avx512vlcd-builtins.c` as part of the work to
ensure all x86 intrinsics are handled correctly by the new interpreter.
Part of #155814.

Added: 
    

Modified: 
    clang/test/CodeGen/X86/avx512cd-builtins.c
    clang/test/CodeGen/X86/avx512vlcd-builtins.c

Removed: 
    


################################################################################
diff  --git a/clang/test/CodeGen/X86/avx512cd-builtins.c 
b/clang/test/CodeGen/X86/avx512cd-builtins.c
index e2921fd4518a7..b9d42b7dea237 100644
--- a/clang/test/CodeGen/X86/avx512cd-builtins.c
+++ b/clang/test/CodeGen/X86/avx512cd-builtins.c
@@ -2,6 +2,10 @@
 // RUN: %clang_cc1 -x c -flax-vector-conversions=none -ffreestanding %s 
-triple=i386-apple-darwin -target-feature +avx512cd -emit-llvm -o - -Wall 
-Werror | FileCheck %s
 // RUN: %clang_cc1 -x c++ -flax-vector-conversions=none -ffreestanding %s 
-triple=x86_64-apple-darwin -target-feature +avx512cd -emit-llvm -o - -Wall 
-Werror | FileCheck %s
 // RUN: %clang_cc1 -x c++ -flax-vector-conversions=none -ffreestanding %s 
-triple=i386-apple-darwin -target-feature +avx512cd -emit-llvm -o - -Wall 
-Werror | FileCheck %s
+// RUN: %clang_cc1 -x c -flax-vector-conversions=none -ffreestanding %s 
-triple=x86_64-apple-darwin -target-feature +avx512cd -emit-llvm -o - -Wall 
-Werror -fexperimental-new-constant-interpreter | FileCheck %s
+// RUN: %clang_cc1 -x c -flax-vector-conversions=none -ffreestanding %s 
-triple=i386-apple-darwin -target-feature +avx512cd -emit-llvm -o - -Wall 
-Werror -fexperimental-new-constant-interpreter | FileCheck %s
+// RUN: %clang_cc1 -x c++ -flax-vector-conversions=none -ffreestanding %s 
-triple=x86_64-apple-darwin -target-feature +avx512cd -emit-llvm -o - -Wall 
-Werror -fexperimental-new-constant-interpreter | FileCheck %s
+// RUN: %clang_cc1 -x c++ -flax-vector-conversions=none -ffreestanding %s 
-triple=i386-apple-darwin -target-feature +avx512cd -emit-llvm -o - -Wall 
-Werror -fexperimental-new-constant-interpreter | FileCheck %s
 
 
 #include <immintrin.h>

diff  --git a/clang/test/CodeGen/X86/avx512vlcd-builtins.c 
b/clang/test/CodeGen/X86/avx512vlcd-builtins.c
index 397ff3c99bf91..1619305dd5210 100644
--- a/clang/test/CodeGen/X86/avx512vlcd-builtins.c
+++ b/clang/test/CodeGen/X86/avx512vlcd-builtins.c
@@ -2,6 +2,10 @@
 // RUN: %clang_cc1 -x c -flax-vector-conversions=none -ffreestanding %s 
-triple=i386-apple-darwin -target-feature +avx512vl -target-feature +avx512cd 
-emit-llvm -o - -Wall -Werror | FileCheck %s
 // RUN: %clang_cc1 -x c++ -flax-vector-conversions=none -ffreestanding %s 
-triple=x86_64-apple-darwin -target-feature +avx512vl -target-feature +avx512cd 
-emit-llvm -o - -Wall -Werror | FileCheck %s
 // RUN: %clang_cc1 -x c++ -flax-vector-conversions=none -ffreestanding %s 
-triple=i386-apple-darwin -target-feature +avx512vl -target-feature +avx512cd 
-emit-llvm -o - -Wall -Werror | FileCheck %s
+// RUN: %clang_cc1 -x c -flax-vector-conversions=none -ffreestanding %s 
-triple=x86_64-apple-darwin -target-feature +avx512vl -target-feature +avx512cd 
-emit-llvm -o - -Wall -Werror -fexperimental-new-constant-interpreter | 
FileCheck %s
+// RUN: %clang_cc1 -x c -flax-vector-conversions=none -ffreestanding %s 
-triple=i386-apple-darwin -target-feature +avx512vl -target-feature +avx512cd 
-emit-llvm -o - -Wall -Werror -fexperimental-new-constant-interpreter | 
FileCheck %s
+// RUN: %clang_cc1 -x c++ -flax-vector-conversions=none -ffreestanding %s 
-triple=x86_64-apple-darwin -target-feature +avx512vl -target-feature +avx512cd 
-emit-llvm -o - -Wall -Werror -fexperimental-new-constant-interpreter | 
FileCheck %s
+// RUN: %clang_cc1 -x c++ -flax-vector-conversions=none -ffreestanding %s 
-triple=i386-apple-darwin -target-feature +avx512vl -target-feature +avx512cd 
-emit-llvm -o - -Wall -Werror -fexperimental-new-constant-interpreter | 
FileCheck %s
 
 
 #include <immintrin.h>


        
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to