1 ; RUN: llc < %s -mtriple=ve -mattr=+vpu | FileCheck %s
3 define void @vld(ptr %p, i64 %i) nounwind {
7 ; CHECK-NEXT: lea %s2, 256
13 ; CHECK-NEXT: vld %v0, %s1, %s0
15 ; CHECK-NEXT: b.l.t (, %s10)
16 %lvl = tail call i64 asm sideeffect "lea $0, 256", "=r"() nounwind
17 tail call void asm sideeffect "lvl $0", "r"(i64 %lvl) nounwind
18 tail call <256 x double> asm sideeffect "vld $0, $2, $1", "=v,r,r"(ptr %p, i64 %i) nounwind
22 define void @vldvst(ptr %p, i64 %i) nounwind {
23 ; CHECK-LABEL: vldvst:
26 ; CHECK-NEXT: lea %s2, 256
32 ; CHECK-NEXT: vld %v0, %s1, %s0
35 ; CHECK-NEXT: vst %v0, %s1, %s0
37 ; CHECK-NEXT: b.l.t (, %s10)
38 %lvl = tail call i64 asm sideeffect "lea $0, 256", "=r"() nounwind
39 tail call void asm sideeffect "lvl $0", "r"(i64 %lvl) nounwind
40 %1 = tail call <256 x double> asm sideeffect "vld $0, $2, $1", "=v,r,r"(ptr %p, i64 %i) nounwind
41 tail call void asm sideeffect "vst $0, $2, $1", "v,r,r"(<256 x double> %1, ptr %p, i64 %i) nounwind
45 define void @vld2vst2(ptr %p, i64 %i) nounwind {
46 ; CHECK-LABEL: vld2vst2:
49 ; CHECK-NEXT: lea %s2, 256
55 ; CHECK-NEXT: vld %v0, %s1, %s0
58 ; CHECK-NEXT: vld %v1, %s1, %s0
61 ; CHECK-NEXT: vst %v0, %s1, %s0
64 ; CHECK-NEXT: vst %v1, %s1, %s0
66 ; CHECK-NEXT: b.l.t (, %s10)
67 %lvl = tail call i64 asm sideeffect "lea $0, 256", "=r"() nounwind
68 tail call void asm sideeffect "lvl $0", "r"(i64 %lvl) nounwind
69 %1 = tail call <256 x double> asm sideeffect "vld $0, $2, $1", "=v,r,r"(ptr %p, i64 %i) nounwind
70 %2 = tail call <256 x double> asm sideeffect "vld $0, $2, $1", "=v,r,r"(ptr %p, i64 %i) nounwind
71 tail call void asm sideeffect "vst $0, $2, $1", "v,r,r"(<256 x double> %1, ptr %p, i64 %i) nounwind
72 tail call void asm sideeffect "vst $0, $2, $1", "v,r,r"(<256 x double> %2, ptr %p, i64 %i) nounwind