1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=riscv32 -mattr=+v -verify-machineinstrs < %s | FileCheck %s
4 ; This demonstrates that we can pass a struct containing scalable vectors across
7 define i32 @foo({ {<vscale x 2 x i32>, <vscale x 2 x i32>}, i32 } %x, ptr %y, ptr %z) {
9 ; CHECK: # %bb.0: # %entry
10 ; CHECK-NEXT: vs1r.v v8, (a1)
11 ; CHECK-NEXT: vs1r.v v9, (a2)
17 %a = extractvalue { {<vscale x 2 x i32>, <vscale x 2 x i32>}, i32 } %x, 1
18 %b = extractvalue { {<vscale x 2 x i32>, <vscale x 2 x i32>}, i32 } %x, 0, 0
19 %c = extractvalue { {<vscale x 2 x i32>, <vscale x 2 x i32>}, i32 } %x, 0, 1
20 store <vscale x 2 x i32> %b, ptr %y
21 store <vscale x 2 x i32> %c, ptr %z