[clang] [OpenMP] Require x86-registered-target for test use avx512 (PR #104390)

Mark Zhuang via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 14 19:31:31 PDT 2024


https://github.com/zqb-all created https://github.com/llvm/llvm-project/pull/104390

None

>From 434bc55536b239047ff094d6bee44c5f6b8e72ef Mon Sep 17 00:00:00 2001
From: Mark Zhuang <mark.zhuang at spacemit.com>
Date: Thu, 15 Aug 2024 10:25:37 +0800
Subject: [PATCH] [OpenMP] Require x86-registered-target for test use avx512

---
 clang/test/OpenMP/declare_variant_device_isa_codegen_1.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/clang/test/OpenMP/declare_variant_device_isa_codegen_1.c b/clang/test/OpenMP/declare_variant_device_isa_codegen_1.c
index 029270ab848663..982787892e9a98 100644
--- a/clang/test/OpenMP/declare_variant_device_isa_codegen_1.c
+++ b/clang/test/OpenMP/declare_variant_device_isa_codegen_1.c
@@ -1,3 +1,5 @@
+// REQUIRES: x86-registered-target
+
 // RUN: %clang_cc1 -verify -fopenmp -x c -triple %itanium_abi_triple -emit-llvm %s -o - -fopenmp-version=45 | FileCheck %s --check-prefix=GENERIC
 // RUN: %clang_cc1 -fopenmp -x c++ -std=c++11 -triple %itanium_abi_triple -fexceptions -fcxx-exceptions -emit-pch -o %t -fopenmp-version=45 %s
 // RUN: %clang_cc1 -fopenmp -x c++ -triple %itanium_abi_triple -fexceptions -fcxx-exceptions -std=c++11 -include-pch %t -verify %s -emit-llvm -o - -fopenmp-version=45 | FileCheck %s --check-prefix=GENERIC



More information about the cfe-commits mailing list