1 ; Test the vector constraint "v" and explicit vector register names.
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 -no-integrated-as | FileCheck %s
4 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z14 -no-integrated-as | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-Z14
11 %val = call float asm "blah $0 $1", "=&v,v" (float 0.0)
20 %val = call double asm "blah $0 $1", "=&v,v" (double 0.0)
26 ; CHECK-Z14: vzero %v0
28 ; CHECK: vst %v1, 0(%r2)
30 %val = call fp128 asm "blah $0 $1", "=&v,v" (fp128 0xL00000000000000000000000000000000)
34 define <2 x i64> @f4() {
36 ; CHECK: vrepig %v0, 1
37 ; CHECK: blah %v24 %v0
39 %val = call <2 x i64> asm "blah $0 $1", "=&v,v" (<2 x i64> <i64 1, i64 1>)
43 define <4 x i32> @f5() {
45 ; CHECK: vrepif %v0, 1
46 ; CHECK: blah %v24 %v0
48 %val = call <4 x i32> asm "blah $0 $1", "=&v,v" (<4 x i32> <i32 1, i32 1, i32 1, i32 1>)
52 define <8 x i16> @f6() {
54 ; CHECK: vrepih %v0, 1
55 ; CHECK: blah %v24 %v0
57 %val = call <8 x i16> asm "blah $0 $1", "=&v,v" (<8 x i16> <i16 1, i16 1, i16 1, i16 1, i16 1, i16 1, i16 1, i16 1>)
61 define <16 x i8> @f7() {
63 ; CHECK: vrepib %v0, 1
64 ; CHECK: blah %v24 %v0
66 %val = call <16 x i8> asm "blah $0 $1", "=&v,v" (<16 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1,
67 i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>)
71 define <2 x double> @f8() {
74 ; CHECK: blah %v24 %v0
76 %val = call <2 x double> asm "blah $0 $1", "=&v,v" (<2 x double> <double 0.0, double 0.0>)
80 define <4 x float> @f9() {
83 ; CHECK: blah %v24 %v0
85 %val = call <4 x float> asm "blah $0 $1", "=&v,v" (<4 x float> <float 0.0, float 0.0, float 0.0, float 0.0>)
95 %ret = call float asm "blah $0", "={v4},0" (float 0.0)
99 define double @f11() {
103 ; CHECK: ldr %f0, %f4
105 %ret = call double asm "blah $0", "={v4},0" (double 0.0)
109 define fp128 @f12() {
111 ; CHECK-Z14: vzero %v4
113 ; CHECK: vst %v4, 0(%r2)
115 %ret = call fp128 asm "blah $0", "={v4},0" (fp128 0xL00000000000000000000000000000000)
119 define <2 x i64> @f13() {
121 ; CHECK: vrepig %v4, 1
123 ; CHECK: vlr %v24, %v4
125 %ret = call <2 x i64> asm "blah $0", "={v4},0" (<2 x i64> <i64 1, i64 1>)
129 define <2 x i64> @f14(<2 x i64> %in) {
131 ; CHECK: vlr [[REG:%v[0-9]+]], %v24
133 ; CHECK: vlr %v24, [[REG]]
135 call void asm sideeffect "blah", "~{v24},~{cc}"()