[llvm] [SelectionDAG] Simplify vselect true, T, F -> T (PR #100992)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 29 03:29:05 PDT 2024
================
@@ -0,0 +1,10 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
+; RUN: llc < %s -mtriple=riscv64 -mattr=+v -verify-machineinstrs | FileCheck %s
+
+define <vscale x 1 x i64> @all_ones(<vscale x 1 x i64> %true, <vscale x 1 x i64> %false, i32 %evl) {
+; CHECK-LABEL: all_ones:
+; CHECK: # %bb.0:
+; CHECK-NEXT: ret
+ %v = call <vscale x 1 x i64> @llvm.vp.select.nxv1i64(<vscale x 1 x i1> splat (i1 true), <vscale x 1 x i64> %true, <vscale x 1 x i64> %false, i32 %evl)
----------------
arsenm wrote:
Also test the all false case? Plus another target with the other bits behavior?
https://github.com/llvm/llvm-project/pull/100992
More information about the llvm-commits
mailing list