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"