[all-commits] [llvm/llvm-project] b94763: [RISCV] Add test cases showing missed opportunitie...

Craig Topper via All-commits all-commits at lists.llvm.org
Sat Nov 7 14:25:41 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b94763d52403dd6f9f603d9f09a012174e0ff7c1
      https://github.com/llvm/llvm-project/commit/b94763d52403dd6f9f603d9f09a012174e0ff7c1
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2020-11-07 (Sat, 07 Nov 2020)

  Changed paths:
    M llvm/test/CodeGen/RISCV/rv32Zbs.ll
    M llvm/test/CodeGen/RISCV/rv64Zbs.ll

  Log Message:
  -----------
  [RISCV] Add test cases showing missed opportunities to use sbset/sbclr/sbinv/sbext when the shift amount isn't masked to log2(xlen) bits. NFC

Out of bounds shifts are undefined and these instructions mask
their shift amount before use. So we don't need to see a mask
in order to select the instructions.




More information about the All-commits mailing list