[clang] d5a6314 - [NFC][CIR][AMDGPU] Use amdgpu-amd-amdhsa triple in offload printf tests (#237225)

via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 3 01:22:35 PST 2026


Author: Arseniy Obolenskiy
Date: 2026-11-03T10:22:30+01:00
New Revision: d5a631483011fd027858d3baeabc04225543dd0e

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

LOG: [NFC][CIR][AMDGPU] Use amdgpu-amd-amdhsa triple in offload printf tests (#237225)

Follow-up to #235901 for tests added later in
https://github.com/llvm/llvm-project/pull/231563

Added: 
    

Modified: 
    clang/test/CIR/Lowering/offload-printf-amdgpu-unsupported.cir
    clang/test/CIR/Lowering/offload-printf-amdgpu.cir

Removed: 
    


################################################################################
diff  --git a/clang/test/CIR/Lowering/offload-printf-amdgpu-unsupported.cir b/clang/test/CIR/Lowering/offload-printf-amdgpu-unsupported.cir
index 131ffc8e0e77ee..456faac277209e 100644
--- a/clang/test/CIR/Lowering/offload-printf-amdgpu-unsupported.cir
+++ b/clang/test/CIR/Lowering/offload-printf-amdgpu-unsupported.cir
@@ -6,7 +6,7 @@
 !s32i = !cir.int<s, 32>
 !s8i = !cir.int<s, 8>
 
-module attributes {cir.triple = "amdgcn-amd-amdhsa",
+module attributes {cir.triple = "amdgpu9.0a-amd-amdhsa",
                    cir.amdgpu_printf_kind = "hostcall"} {
   cir.func @p(%fmt: !cir.ptr<!s8i>, %v: !cir.vector<4 x !s32i>) -> !s32i {
     // expected-error @below {{unsupported argument type '!cir.vector<4 x !cir.int<s, 32>>' for AMDGPU printf}}

diff  --git a/clang/test/CIR/Lowering/offload-printf-amdgpu.cir b/clang/test/CIR/Lowering/offload-printf-amdgpu.cir
index 82fa0b9c23b0bd..89f37eecf75697 100644
--- a/clang/test/CIR/Lowering/offload-printf-amdgpu.cir
+++ b/clang/test/CIR/Lowering/offload-printf-amdgpu.cir
@@ -1,4 +1,4 @@
-// RUN: cir-translate %s -cir-to-llvmir --target amdgcn-amd-amdhsa --disable-cc-lowering --split-input-file -o - \
+// RUN: cir-translate %s -cir-to-llvmir --target amdgpu9.0a-amd-amdhsa --disable-cc-lowering --split-input-file -o - \
 // RUN:   | FileCheck %s --check-prefixes=HOSTCALL,BUFFERED
 
 !s32i = !cir.int<s, 32>


        


More information about the cfe-commits mailing list