Open nathanchance opened 2 years ago
$ llc-14 -mcpu=mips64r2 reduced.ll
<inline asm>:1:13: error: instruction requires a CPU feature not currently enabled
.set virt; tlbgr;
^
$ llc-14 -mcpu=mips64r5 reduced.ll # OK
But Loongson is mips64r2
with extensions (including virtualization). GNU as accepts these instructions with mips64r2
, llvm doesn't.
https://lore.kernel.org/lkml/202312120116.CP1IYKWT-lkp@intel.com/ is also reporting this though it's using malta_kvm_defconfig. It thought we test that config in CI?
We have never tested malta_kvm_defconfig
, we used to test malta_kvm_guest_defconfig
: https://github.com/ClangBuiltLinux/continuous-integration2/commit/ab0f69c9f75453766445d4cf39d75250f91eda88
Initially reported by @emojifreak in #1526.
cvise
spits out:Reduced IR:
According to https://github.com/llvm/llvm-project/commit/d4349f3bf676c0fcb4242b5abe8f5f6043ed4b34,
.set virt
should be supported...