gallivm: lp_bld_debug.cpp:disassemble()
Call LLVMCreateDisasmCPUFeatures(), which takes the specific host CPU model name returned by getHostCPUName(), instead of LLVMCreateDisasm().
LLVMCreateDisasm is just a pass-through to LLVMCreateDisasmCPUFeatures that passes "" for the CPU, resulting in a "generic" choice for the host CPU. This results in the disassembler aborting with an "invalid" message when, e.g., disassembling a z13 vector instruction (which is not a generic S390x instruction).
Tested on X86_64, POWER, ARM, and S390x (z13).
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1851274 Co-authored by: Tom Stellard tstellar@redhat.com