Skip to content

[clang][Driver][test][NFC] Adjust test for targets with no cc1as #140490

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

hubert-reinterpretcast
Copy link
Collaborator

Have the test accept use of the toolchain assembler instead of -cc1as as some targets, such as AIX, do not use -cc1as.

Have the test accept use of the toolchain assembler instead of `-cc1as`
as some targets, such as AIX, do not use `-cc1as`.
@llvmbot llvmbot added clang Clang issues not falling into any other category clang:driver 'clang' and 'clang++' user-facing binaries. Not 'clang-cl' labels May 19, 2025
@llvmbot
Copy link
Member

llvmbot commented May 19, 2025

@llvm/pr-subscribers-clang-driver

@llvm/pr-subscribers-clang

Author: Hubert Tong (hubert-reinterpretcast)

Changes

Have the test accept use of the toolchain assembler instead of -cc1as as some targets, such as AIX, do not use -cc1as.


Full diff: https://github.com/llvm/llvm-project/pull/140490.diff

1 Files Affected:

  • (modified) clang/test/Driver/no-integrated-cpp.c (+2-2)
diff --git a/clang/test/Driver/no-integrated-cpp.c b/clang/test/Driver/no-integrated-cpp.c
index a7dc847f08a67..2094d4247184f 100644
--- a/clang/test/Driver/no-integrated-cpp.c
+++ b/clang/test/Driver/no-integrated-cpp.c
@@ -22,7 +22,7 @@
 // SRC-SAVE-SAME: "-o" "[[ASM:.*.s]]"
 // SRC-SAVE-SAME: "-x" "ir" "[[BITCODE]]"
 //
-// SRC-SAVE-NEXT: "-cc1as"
+// SRC-SAVE-NEXT: {{"-cc1as"|"[^"]*/as"}}
 // SRC-SAVE-SAME: "-o" "a.o" "[[ASM]]"
 //
 // RUN: %clang -O2 %t.i  -c -o a.o -no-integrated-cpp -### 2>&1 | FileCheck %s --check-prefixes=PRE
@@ -41,7 +41,7 @@
 // PRE-SAVE-SAME: "-o" "[[ASM:.*.s]]"
 // PRE-SAVE-SAME: "-x" "ir" "[[BITCODE]]"
 //
-// PRE-SAVE-NEXT: "-cc1as"
+// PRE-SAVE-NEXT: {{"-cc1as"|"[^"]*/as"}}
 // PRE-SAVE-SAME: "-o" "a.o" "[[ASM]]"
 //
 // RUN: %clang -O2 %s -c -emit-llvm -o a.bc -no-integrated-cpp -### 2>&1 | FileCheck %s --check-prefixes=LLVM

@hubert-reinterpretcast
Copy link
Collaborator Author

Copy link
Contributor

@jmmartinez jmmartinez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix !

@hubert-reinterpretcast hubert-reinterpretcast merged commit cc51cbe into main May 19, 2025
14 checks passed
@hubert-reinterpretcast hubert-reinterpretcast deleted the users/hubert-reinterpretcast/nfc-test-fix-cc1as-AIX branch May 19, 2025 10:23
ajaden-codes pushed a commit to Jaddyen/llvm-project that referenced this pull request Jun 6, 2025
…m#140490)

Have the test accept use of the toolchain assembler instead of `-cc1as`
as some targets, such as AIX, do not use `-cc1as`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang:driver 'clang' and 'clang++' user-facing binaries. Not 'clang-cl' clang Clang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants