; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py ; RUN: llc -mtriple riscv32 -mattr=+experimental-v %s -o - \ ; RUN: -verify-machineinstrs | FileCheck %s ; RUN: llc -mtriple riscv64 -mattr=+experimental-v %s -o - \ ; RUN: -verify-machineinstrs | FileCheck %s define void @vadd_vint8m1( *%pc, *%pa, *%pb) nounwind { ; CHECK-LABEL: vadd_vint8m1: ; CHECK: # %bb.0: ; CHECK-NEXT: vsetvli a3, zero, e8,m1,ta,mu ; CHECK-NEXT: vle8.v v25, (a1) ; CHECK-NEXT: vle8.v v26, (a2) ; CHECK-NEXT: vadd.vv v25, v25, v26 ; CHECK-NEXT: vse8.v v25, (a0) ; CHECK-NEXT: ret %va = load , * %pa %vb = load , * %pb %vc = add %va, %vb store %vc, *%pc ret void } define void @vadd_vint8m2( *%pc, *%pa, *%pb) nounwind { ; CHECK-LABEL: vadd_vint8m2: ; CHECK: # %bb.0: ; CHECK-NEXT: vsetvli a3, zero, e8,m2,ta,mu ; CHECK-NEXT: vle8.v v26, (a1) ; CHECK-NEXT: vle8.v v28, (a2) ; CHECK-NEXT: vadd.vv v26, v26, v28 ; CHECK-NEXT: vse8.v v26, (a0) ; CHECK-NEXT: ret %va = load , * %pa %vb = load , * %pb %vc = add %va, %vb store %vc, *%pc ret void } define void @vadd_vint8m4( *%pc, *%pa, *%pb) nounwind { ; CHECK-LABEL: vadd_vint8m4: ; CHECK: # %bb.0: ; CHECK-NEXT: vsetvli a3, zero, e8,m4,ta,mu ; CHECK-NEXT: vle8.v v28, (a1) ; CHECK-NEXT: vle8.v v8, (a2) ; CHECK-NEXT: vadd.vv v28, v28, v8 ; CHECK-NEXT: vse8.v v28, (a0) ; CHECK-NEXT: ret %va = load , * %pa %vb = load , * %pb %vc = add %va, %vb store %vc, *%pc ret void } define void @vadd_vint8m8( *%pc, *%pa, *%pb) nounwind { ; CHECK-LABEL: vadd_vint8m8: ; CHECK: # %bb.0: ; CHECK-NEXT: vsetvli a3, zero, e8,m8,ta,mu ; CHECK-NEXT: vle8.v v8, (a1) ; CHECK-NEXT: vle8.v v16, (a2) ; CHECK-NEXT: vadd.vv v8, v8, v16 ; CHECK-NEXT: vse8.v v8, (a0) ; CHECK-NEXT: ret %va = load , * %pa %vb = load , * %pb %vc = add %va, %vb store %vc, *%pc ret void } define void @vadd_vint8mf2( *%pc, *%pa, *%pb) nounwind { ; CHECK-LABEL: vadd_vint8mf2: ; CHECK: # %bb.0: ; CHECK-NEXT: vsetvli a3, zero, e8,mf2,ta,mu ; CHECK-NEXT: vle8.v v25, (a1) ; CHECK-NEXT: vle8.v v26, (a2) ; CHECK-NEXT: vadd.vv v25, v25, v26 ; CHECK-NEXT: vse8.v v25, (a0) ; CHECK-NEXT: ret %va = load , * %pa %vb = load , * %pb %vc = add %va, %vb store %vc, *%pc ret void } define void @vadd_vint8mf4( *%pc, *%pa, *%pb) nounwind { ; CHECK-LABEL: vadd_vint8mf4: ; CHECK: # %bb.0: ; CHECK-NEXT: vsetvli a3, zero, e8,mf4,ta,mu ; CHECK-NEXT: vle8.v v25, (a1) ; CHECK-NEXT: vle8.v v26, (a2) ; CHECK-NEXT: vadd.vv v25, v25, v26 ; CHECK-NEXT: vse8.v v25, (a0) ; CHECK-NEXT: ret %va = load , * %pa %vb = load , * %pb %vc = add %va, %vb store %vc, *%pc ret void } define void @vadd_vint8mf8( *%pc, *%pa, *%pb) nounwind { ; CHECK-LABEL: vadd_vint8mf8: ; CHECK: # %bb.0: ; CHECK-NEXT: vsetvli a3, zero, e8,mf8,ta,mu ; CHECK-NEXT: vle8.v v25, (a1) ; CHECK-NEXT: vle8.v v26, (a2) ; CHECK-NEXT: vadd.vv v25, v25, v26 ; CHECK-NEXT: vse8.v v25, (a0) ; CHECK-NEXT: ret %va = load , * %pa %vb = load , * %pb %vc = add %va, %vb store %vc, *%pc ret void }