[RISCV] Add test case showing suboptimal codegen when loading unsigned char/short
authorAlex Bradbury <asb@lowrisc.org>
Thu, 26 Apr 2018 14:00:35 +0000 (14:00 +0000)
committerAlex Bradbury <asb@lowrisc.org>
Thu, 26 Apr 2018 14:00:35 +0000 (14:00 +0000)
commite74f51924155bc6ee08ef527128dac9a645eccfd
tree51ce236045e460d859c4526c1c4239ce4a73395a
parentb4096ebe26007b3b05aba4c860dd1dd966ec5bfe
[RISCV] Add test case showing suboptimal codegen when loading unsigned char/short

Implementing isZextFree will allow lbu or lhu to be selected rather than
lb+mask and lh+mask.

llvm-svn: 330942
llvm/test/CodeGen/RISCV/zext-with-load-is-free.ll [new file with mode: 0644]