1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=ve-unknown-unknown -mattr=+vpu | FileCheck %s
4 @v256i64 = common dso_local local_unnamed_addr global <256 x i64> zeroinitializer, align 16
6 ; Function Attrs: norecurse nounwind readonly
7 define fastcc void @storev256i64(ptr nocapture, <256 x i64>) {
8 ; CHECK-LABEL: storev256i64:
10 ; CHECK-NEXT: lea %s1, 256
12 ; CHECK-NEXT: vst %v0, 8, %s0
13 ; CHECK-NEXT: b.l.t (, %s10)
14 store <256 x i64> %1, ptr %0, align 16
18 ; Function Attrs: norecurse nounwind readonly
19 define fastcc void @storev256i64stk(<256 x i64>) {
20 ; CHECK-LABEL: storev256i64stk:
22 ; CHECK-NEXT: lea %s11, -2048(, %s11)
23 ; CHECK-NEXT: brge.l.t %s11, %s8, .LBB1_2
24 ; CHECK-NEXT: # %bb.1:
25 ; CHECK-NEXT: ld %s61, 24(, %s14)
26 ; CHECK-NEXT: or %s62, 0, %s0
27 ; CHECK-NEXT: lea %s63, 315
28 ; CHECK-NEXT: shm.l %s63, (%s61)
29 ; CHECK-NEXT: shm.l %s8, 8(%s61)
30 ; CHECK-NEXT: shm.l %s11, 16(%s61)
32 ; CHECK-NEXT: or %s0, 0, %s62
33 ; CHECK-NEXT: .LBB1_2:
34 ; CHECK-NEXT: lea %s0, 256
35 ; CHECK-NEXT: lea %s1, (, %s11)
37 ; CHECK-NEXT: vst %v0, 8, %s1
38 ; CHECK-NEXT: lea %s11, 2048(, %s11)
39 ; CHECK-NEXT: b.l.t (, %s10)
40 %addr = alloca <256 x i64>, align 16
41 store <256 x i64> %0, ptr %addr, align 16
45 ; Function Attrs: norecurse nounwind readonly
46 define fastcc void @storev256i64com(<256 x i64>) {
47 ; CHECK-LABEL: storev256i64com:
49 ; CHECK-NEXT: lea %s0, v256i64@lo
50 ; CHECK-NEXT: and %s0, %s0, (32)0
51 ; CHECK-NEXT: lea.sl %s0, v256i64@hi(, %s0)
52 ; CHECK-NEXT: lea %s1, 256
54 ; CHECK-NEXT: vst %v0, 8, %s0
55 ; CHECK-NEXT: b.l.t (, %s10)
56 store <256 x i64> %0, ptr @v256i64, align 16