[clang] 3b276a0 - [ARM64EC][clang-cl] Add arm64EC test; NFC

via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 7 23:47:46 PDT 2022


Author: chenglin.bi
Date: 2022-10-08T14:47:50+08:00
New Revision: 3b276a0decea1adcb822d5110f25f7256a6ade6c

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

LOG: [ARM64EC][clang-cl] Add arm64EC test; NFC

Added: 
    

Modified: 
    clang/test/Driver/cl-options.c

Removed: 
    


################################################################################
diff  --git a/clang/test/Driver/cl-options.c b/clang/test/Driver/cl-options.c
index 6c768fbb7100..423799ef9963 100644
--- a/clang/test/Driver/cl-options.c
+++ b/clang/test/Driver/cl-options.c
@@ -782,8 +782,11 @@
 // EXTERNAL_W0: "-Wno-system-headers"
 // EXTERNAL_Wn: "-Wsystem-headers"
 
-// RUN: %clang_cl -vctoolsdir "" /arm64EC /c -### -- %s 2>&1 | FileCheck %s --check-prefix ARM64EC
-// ARM64EC: "-triple" "arm64ec-pc-windows-msvc19.20.0"
+// RUN: %clang_cl -vctoolsdir "" /arm64EC /c -### -- %s 2>&1 | FileCheck --check-prefix=ARM64EC %s 
 // ARM64EC-NOT: /arm64EC has been overridden by specified target
+// ARM64EC: "-triple" "arm64ec-pc-windows-msvc19.20.0"
+
+// RUN: %clang_cl -vctoolsdir "" /arm64EC /c -target x86_64-pc-windows-msvc  -### -- %s 2>&1 | FileCheck --check-prefix=ARM64EC_OVERRIDE %s
+// ARM64EC_OVERRIDE: warning: /arm64EC has been overridden by specified target: x86_64-pc-windows-msvc; option ignored
 
 void f(void) { }


        


More information about the cfe-commits mailing list