1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -S -passes=memcpyopt < %s | FileCheck %s
4 define void @f(ptr nocapture noundef writeonly %r, <vscale x 2 x i32> %x) {
7 ; CHECK-NEXT: [[X_ADDR:%.*]] = alloca <vscale x 2 x i32>, align 8
8 ; CHECK-NEXT: store <vscale x 2 x i32> [[X:%.*]], ptr [[X_ADDR]], align 8
9 ; CHECK-NEXT: [[TMP0:%.*]] = load i64, ptr [[X_ADDR]], align 8
10 ; CHECK-NEXT: store i64 [[TMP0]], ptr [[R:%.*]], align 1
11 ; CHECK-NEXT: ret void
14 %x.addr = alloca <vscale x 2 x i32>, align 8
15 store <vscale x 2 x i32> %x, ptr %x.addr, align 8
16 %0 = load i64, ptr %x.addr, align 8
17 store i64 %0, ptr %r, align 1