[llvm-branch-commits] [clang] a7d40d9 - clang/AMDGPU: Fix a few tests codegening the dummy target (#220047)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Sep 1 14:54:25 PDT 2026
Author: Matt Arsenault
Date: 2026-08-31T21:38:05+02:00
New Revision: a7d40d93a11f1e495bb892973f38b2f3be39ac9a
URL: https://github.com/llvm/llvm-project/commit/a7d40d93a11f1e495bb892973f38b2f3be39ac9a
DIFF: https://github.com/llvm/llvm-project/commit/a7d40d93a11f1e495bb892973f38b2f3be39ac9a.diff
LOG: clang/AMDGPU: Fix a few tests codegening the dummy target (#220047)
Use a real target triple name
Added:
Modified:
clang/test/CodeGenOpenCL/amdgpu-ieee.cl
clang/test/CodeGenOpenCL/backend-unsupported-warning.ll
Removed:
################################################################################
diff --git a/clang/test/CodeGenOpenCL/amdgpu-ieee.cl b/clang/test/CodeGenOpenCL/amdgpu-ieee.cl
index adbb580a0bb3a..4e7392c5ce506 100644
--- a/clang/test/CodeGenOpenCL/amdgpu-ieee.cl
+++ b/clang/test/CodeGenOpenCL/amdgpu-ieee.cl
@@ -1,30 +1,30 @@
// REQUIRES: amdgpu-registered-target
//
-// RUN: %clang_cc1 -triple amdgpu-amd-amdhsa -O0 -emit-llvm -o - %s \
+// RUN: %clang_cc1 -triple amdgpu7.00-amd-amdhsa -O0 -emit-llvm -o - %s \
// RUN: -target-feature +dx10-clamp-and-ieee-mode \
// RUN: | FileCheck -check-prefixes=COMMON,ON %s
-// RUN: %clang_cc1 -triple amdgpu-amd-amdhsa -O0 -emit-llvm -o - %s \
+// RUN: %clang_cc1 -triple amdgpu7.00-amd-amdhsa -O0 -emit-llvm -o - %s \
// RUN: -target-feature +dx10-clamp-and-ieee-mode \
// RUN: -mno-amdgpu-ieee -menable-no-nans \
// RUN: | FileCheck -check-prefixes=COMMON,OFF %s
-// RUN: %clang_cc1 -triple amdgpu-amd-amdhsa -O0 -emit-llvm -o - %s \
+// RUN: %clang_cc1 -triple amdgpu7.00-amd-amdhsa -O0 -emit-llvm -o - %s \
// RUN: -target-feature +dx10-clamp-and-ieee-mode \
// RUN: -mno-amdgpu-ieee -cl-fast-relaxed-math -menable-no-nans \
// RUN: | FileCheck -check-prefixes=COMMON,OFF %s
// Check AMDGCN ISA generation.
-// RUN: %clang_cc1 -triple amdgpu-amd-amdhsa -O3 -S -o - %s \
+// RUN: %clang_cc1 -triple amdgpu7.00-amd-amdhsa -O3 -S -o - %s \
// RUN: -target-feature +dx10-clamp-and-ieee-mode \
// RUN: | FileCheck -check-prefixes=ISA-ON %s
-// RUN: %clang_cc1 -triple amdgpu-amd-amdhsa -O3 -S -o - %s \
+// RUN: %clang_cc1 -triple amdgpu7.00-amd-amdhsa -O3 -S -o - %s \
// RUN: -target-feature +dx10-clamp-and-ieee-mode \
// RUN: -mno-amdgpu-ieee -menable-no-nans \
// RUN: | FileCheck -check-prefixes=ISA-OFF %s
// Check diagnostics when using -mno-amdgpu-ieee without NoHonorNaNs.
-// RUN: not %clang_cc1 -triple amdgpu-amd-amdhsa -O0 -emit-llvm -o - %s \
+// RUN: not %clang_cc1 -triple amdgpu7.00-amd-amdhsa -O0 -emit-llvm -o - %s \
// RUN: -mno-amdgpu-ieee 2>&1 | FileCheck -check-prefixes=DIAG %s
// COMMON: define{{.*}} amdgpu_kernel void @kern{{.*}} [[ATTRS1:#[0-9]+]]
diff --git a/clang/test/CodeGenOpenCL/backend-unsupported-warning.ll b/clang/test/CodeGenOpenCL/backend-unsupported-warning.ll
index c33c6b0255374..e01874e09476e 100644
--- a/clang/test/CodeGenOpenCL/backend-unsupported-warning.ll
+++ b/clang/test/CodeGenOpenCL/backend-unsupported-warning.ll
@@ -1,12 +1,12 @@
; REQUIRES: amdgpu-registered-target
-; RUN: %clang_cc1 -triple amdgpu-amd-amdhsa -S -o - %s 2>&1 | FileCheck %s
+; RUN: %clang_cc1 -triple amdgpu7.00-amd-amdhsa -S -o - %s 2>&1 | FileCheck %s
; Check that a DiagnosticUnsupported reported as a warning works
; correctly, and is not emitted as an error.
; CHECK: warning: test.c:2:20: in function use_lds_global_in_func i32 (): local memory global used by non-kernel function
-target triple = "amdgcn-amd-amdhsa"
+target triple = "amdgpu7.00-amd-amdhsa"
@lds = external addrspace(3) global i32, align 4
More information about the llvm-branch-commits
mailing list