Author: Fangrui Song
Date: 2023-06-06T14:08:49-07:00
New Revision: 5805aeb0d924805c4ea132829debfaedcbcb0e76

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

LOG: [test] Restore x86-registered-target in Driver/as-warnings.c

64666d46c0bb0575e62525a5b867569b32850116 incorrectly removed REQUIRES.
2 RUN lines do need x86-registered-target.

Added: 
    

Modified: 
    clang/test/Driver/as-warnings.c

Removed: 
    


################################################################################
diff  --git a/clang/test/Driver/as-warnings.c b/clang/test/Driver/as-warnings.c
index c72ea34ff8a71..e05df870e4556 100644
--- a/clang/test/Driver/as-warnings.c
+++ b/clang/test/Driver/as-warnings.c
@@ -10,8 +10,8 @@
 // RUN: %clang -### --target=x86_64-pc-linux-gnu %s -c -o tmp.o -integrated-as 
-Wa,-W 2>&1 | FileCheck %s
 
 /// Make sure warnings behave properly in integrated assembler.
-// RUN: %clang --target=x86_64-pc-linux-gnu %s -c -o %t.o -integrated-as 
-Wa,--no-warn 2>&1 | FileCheck -allow-empty --check-prefix=CHECK-AS-NOWARN %s
-// RUN: not %clang --target=x86_64-pc-linux-gnu %s -c -o %t.o -integrated-as 
-Wa,--fatal-warnings 2>&1 | FileCheck --check-prefix=CHECK-AS-FATAL %s
+// RUN: %if x86-registered-target %{ %clang --target=x86_64 %s -c -o /dev/null 
-fintegrated-as -Wa,--no-warn 2>&1 | count 0 %}
+// RUN: %if x86-registered-target %{ not %clang --target=x86_64 %s -c -o 
/dev/null -fintegrated-as -Wa,--fatal-warnings 2>&1 | FileCheck 
--check-prefix=CHECK-AS-FATAL %s %}
 
 // CHECK: "-cc1" {{.*}} "-massembler-no-warn"
 // CHECK-NOIAS: "--no-warn"


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to