Merge pull request #2151 from oneandonlydean/fix/hw-oracle-amdgpu-skip

fix(hw-oracle): skip the wave64 assembly test when clang has no AMDGPU target
This commit is contained in:
Dean 2026-10-09 23:10:00 +13:00 committed by GitHub
commit 745b775e2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -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"