[all-commits] [llvm/llvm-project] 51315d: [RISCV] Add more test cases to select.ll. NFC

Craig Topper via All-commits all-commits at lists.llvm.org
Wed Dec 21 10:39:15 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 51315d8deebb0d32b9f556bedae5251a4643b85a
      https://github.com/llvm/llvm-project/commit/51315d8deebb0d32b9f556bedae5251a4643b85a
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-12-21 (Wed, 21 Dec 2022)

  Changed paths:
    M llvm/test/CodeGen/RISCV/select.ll

  Log Message:
  -----------
  [RISCV] Add more test cases to select.ll. NFC

These are test for select (and (x , 0x1) == 0), (z ^ y), y ) and select (and (x , 0x1) == 0), (z | y), y )

These can be made branchless by using ((x-1) & z ) ^ y.




More information about the All-commits mailing list