This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Fix zfinx test error in rust
AbandonedPublic

Authored by achieveartificialintelligence on Feb 18 2022, 6:47 AM.

Details

Reviewers
krasimir
durin42
Summary

Diff Detail

Event Timeline

achieveartificialintelligence requested review of this revision.Feb 18 2022, 6:47 AM

Missing test

Missing test

Tests are in the rust environment.

Missing test

Tests are in the rust environment.

That's no good for us, Rust isn't part of LLVM

I'm unconvinced this is quite the right fix for the bug. I agree we need this code, but I disagree that this code should be needed when Zfinx isn't in use. Without Zfinx, we should never have GFPR* be legal in the first place, surely?

llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
260

Surely for floats in GPRs we should just use a GPR move? It'll compress better and avoids unnecessary FPU usage.

durin42 requested changes to this revision.Feb 18 2022, 8:10 AM
durin42 added a subscriber: durin42.

I ran the Rust testsuite with this change applied to LLVM and it fails the same way as before. Probably easy to catch if you use the IR reported in the other change?

This revision now requires changes to proceed.Feb 18 2022, 8:10 AM