Unverified Commit 0b3d1a0b authored by Alex Bradbury's avatar Alex Bradbury Committed by GitHub
Browse files

[RISCV][test] Add tests for RISCVInstrInfo::describeLoadedValue (#76041)

Tests are in preparation for adding handling of the load of a constant
value as Mips does (noted in

<https://github.com/llvm/llvm-project/pull/72356#discussion_r1395203532>).

I've opted to implement these tests as a C++ unit test as on balance I
_think_ it's easier to follow and maintain than .mir tests trying to
indirectly test this function. That said, you see the limitations with
the test of describeLoadedValue on a memory operation where we'd rather
pass `MachinePointerInfo::getFixedStack` but can't because we'd need to
then ensure the necessary stack metadata for the function is present.
parent 9943d339
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment