[llvm] [DAGCombiner] Handle extending EXTRACT_VECTOR_ELTs in calculateByteProvider (PR #83963)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 5 02:01:13 PST 2024
================
@@ -0,0 +1,17 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
+; RUN: llc < %s -mtriple=riscv64 -mattr=+v -verify-machineinstrs | FileCheck %s
+
+define i8 @or_load_combine(ptr %p) {
+; CHECK-LABEL: or_load_combine:
+; CHECK: # %bb.0: # %entry
+; CHECK-NEXT: vsetivli zero, 2, e8, mf8, ta, ma
+; CHECK-NEXT: vle8.v v8, (a0)
+; CHECK-NEXT: vmv.x.s a0, v8
+; CHECK-NEXT: ori a0, a0, 1
+; CHECK-NEXT: ret
+entry:
+ %0 = load <2 x i8>, ptr %p
----------------
arsenm wrote:
Use named values
https://github.com/llvm/llvm-project/pull/83963
More information about the llvm-commits
mailing list