fix(hw-oracle): skip the wave64 assembly test when clang has no AMDGPU target
This commit is contained in:
parent
47d254479d
commit
e0a8297a7b
|
|
@ -129,6 +129,9 @@ class AssemblyTests(unittest.TestCase):
|
||||||
hw_oracle.tool(name)
|
hw_oracle.tool(name)
|
||||||
except SystemExit as error:
|
except SystemExit as error:
|
||||||
self.skipTest(str(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]")):
|
for wave64, vcc, sgpr in ((False, "vcc_lo", "s8"), (True, "vcc", "s[8:9]")):
|
||||||
body = (f" v_cmp_lt_f32 {vcc}, v4, v5\n"
|
body = (f" v_cmp_lt_f32 {vcc}, v4, v5\n"
|
||||||
f" v_cndmask_b32 v10, v6, v7, {vcc}\n"
|
f" v_cndmask_b32 v10, v6, v7, {vcc}\n"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue