[clang] [HIP] change default offload archs (PR #139281)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Fri May 9 10:16:38 PDT 2025
================
@@ -1,3 +1,3 @@
// RUN: %clang -### -nogpulib -nogpuinc -c %s 2>&1 | FileCheck %s
-// CHECK: {{.*}}clang{{.*}}"-target-cpu" "gfx906"
+// CHECK: {{.*}}clang{{.*}}"-triple" "{{amdgcn|spirv64}}-amd-amdhsa"{{.*}} "-target-cpu" "{{amdgcnspirv|gfx.*}}"
----------------
arsenm wrote:
Is this relying on the default target triple? Test both cases with explicit triples?
https://github.com/llvm/llvm-project/pull/139281
More information about the cfe-commits
mailing list