33 lines
1.6 KiB
Diff
33 lines
1.6 KiB
Diff
From b7cf9bbfde5e623e16fe8669e18aa34cbb3afafa Mon Sep 17 00:00:00 2001
|
|
From: XinWang10 <xin10.wang@intel.com>
|
|
Date: Fri, 18 Aug 2023 00:08:01 -0700
|
|
Subject: [PATCH] Fix regression of D157680
|
|
|
|
Test cases in D157680 should be target specific, but miss some limit, add them back to make buildbot pass.
|
|
|
|
Reviewed By: skan, Hahnfeld
|
|
|
|
Differential Revision: https://reviews.llvm.org/D158252
|
|
---
|
|
|
|
diff --git a/clang/test/Driver/x86-no-gather-no-scatter.cpp b/clang/test/Driver/x86-no-gather-no-scatter.cpp
|
|
index 7efcc55787c4..2e8f4615b846 100644
|
|
--- a/clang/test/Driver/x86-no-gather-no-scatter.cpp
|
|
+++ b/clang/test/Driver/x86-no-gather-no-scatter.cpp
|
|
@@ -1,8 +1,8 @@
|
|
/// Tests -mno-gather and -mno-scatter
|
|
-// RUN: %clang -c -mno-gather -### %s 2>&1 | FileCheck --check-prefix=NOGATHER %s
|
|
-// RUN: %clang_cl -c /Qgather- -### %s 2>&1 | FileCheck --check-prefix=NOGATHER %s
|
|
+// RUN: %clang -target x86_64-unknown-linux-gnu -c -mno-gather -### %s 2>&1 | FileCheck --check-prefix=NOGATHER %s
|
|
+// RUN: %clang_cl --target=x86_64-windows -c /Qgather- -### %s 2>&1 | FileCheck --check-prefix=NOGATHER %s
|
|
// NOGATHER: "-target-feature" "+prefer-no-gather"
|
|
|
|
-// RUN: %clang -c -mno-scatter -### %s 2>&1 | FileCheck --check-prefix=NOSCATTER %s
|
|
-// RUN: %clang_cl -c /Qscatter- -### %s 2>&1 | FileCheck --check-prefix=NOSCATTER %s
|
|
+// RUN: %clang -target x86_64-unknown-linux-gnu -c -mno-scatter -### %s 2>&1 | FileCheck --check-prefix=NOSCATTER %s
|
|
+// RUN: %clang_cl --target=x86_64-windows -c /Qscatter- -### %s 2>&1 | FileCheck --check-prefix=NOSCATTER %s
|
|
// NOSCATTER: "-target-feature" "+prefer-no-scatter"
|
|
--
|
|
2.41.0
|
|
|