[RISCV] Add test cases showing failure to use ADDIW before fcvt.s.w/fcvt.d.w/fcvt...
authorCraig Topper <craig.topper@sifive.com>
Wed, 22 Sep 2021 21:16:30 +0000 (14:16 -0700)
committerCraig Topper <craig.topper@sifive.com>
Wed, 22 Sep 2021 21:24:26 +0000 (14:24 -0700)
commitc7e78150f733d5be3cae766de3385173e2e245ff
tree0c4e3c5d8b3df487059eb151cdcdc063bab7b8d1
parentcd36bab4ca901199c753e99cb66143eca52ffed8
[RISCV] Add test cases showing failure to use ADDIW before fcvt.s.w/fcvt.d.w/fcvt.h.w. NFC

By not using ADDIW we can cause both an ADDIW and ADDI to be emitted
when the add has multiple users.

These instructions needed be added to the list of instructions that
only use the lower 32 bits of input.

I've also added tests for the wu versions, but I'm having trouble
showing bad codegen from it.
llvm/test/CodeGen/RISCV/double-convert.ll
llvm/test/CodeGen/RISCV/float-convert.ll
llvm/test/CodeGen/RISCV/half-convert.ll