From e0a8297a7bc5c9542d029807efd07f5832c065ad Mon Sep 17 00:00:00 2001 From: Dean Galvin Date: Fri, 9 Oct 2026 23:05:41 +1300 Subject: [PATCH] fix(hw-oracle): skip the wave64 assembly test when clang has no AMDGPU target --- tools/hw-oracle/test_hw_oracle.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/hw-oracle/test_hw_oracle.py b/tools/hw-oracle/test_hw_oracle.py index 35a00598a..15a33fd05 100644 --- a/tools/hw-oracle/test_hw_oracle.py +++ b/tools/hw-oracle/test_hw_oracle.py @@ -129,6 +129,9 @@ class AssemblyTests(unittest.TestCase): hw_oracle.tool(name) except SystemExit as error: self.skipTest(str(error)) + targets = subprocess.run([hw_oracle.tool("clang"), "--print-targets"], capture_output=True, text=True).stdout + if "amdgcn" not in targets: + self.skipTest("clang has no AMDGPU target") for wave64, vcc, sgpr in ((False, "vcc_lo", "s8"), (True, "vcc", "s[8:9]")): body = (f" v_cmp_lt_f32 {vcc}, v4, v5\n" f" v_cndmask_b32 v10, v6, v7, {vcc}\n"