1 ; Test vector replicates that use VECTOR GENERATE MASK, v2f64 version.
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 | FileCheck %s
5 ; Test a word-granularity replicate with the lowest value that cannot use
7 define <2 x double> @f1() {
9 ; CHECK: vgmf %v24, 16, 16
11 ret <2 x double> <double 0x0000800000008000, double 0x0000800000008000>
14 ; Test a word-granularity replicate that has the lower 17 bits set.
15 define <2 x double> @f2() {
17 ; CHECK: vgmf %v24, 15, 31
19 ret <2 x double> <double 0x0001ffff0001ffff, double 0x0001ffff0001ffff>
22 ; Test a word-granularity replicate that has the upper 15 bits set.
23 define <2 x double> @f3() {
25 ; CHECK: vgmf %v24, 0, 14
27 ret <2 x double> <double 0xfffe0000fffe0000, double 0xfffe0000fffe0000>
30 ; Test a word-granularity replicate that has middle bits set.
31 define <2 x double> @f4() {
33 ; CHECK: vgmf %v24, 2, 11
35 ret <2 x double> <double 0x3ff000003ff00000, double 0x3ff000003ff00000>
38 ; Test a word-granularity replicate with a wrap-around mask.
39 define <2 x double> @f5() {
41 ; CHECK: vgmf %v24, 17, 15
43 ret <2 x double> <double 0xffff7fffffff7fff, double 0xffff7fffffff7fff>
46 ; Test a doubleword-granularity replicate with the lowest value that cannot
48 define <2 x double> @f6() {
50 ; CHECK: vgmg %v24, 48, 48
52 ret <2 x double> <double 0x0000000000008000, double 0x0000000000008000>
55 ; Test a doubleword-granularity replicate that has the lower 22 bits set.
56 define <2 x double> @f7() {
58 ; CHECK: vgmg %v24, 42, 63
60 ret <2 x double> <double 0x000000000003fffff, double 0x000000000003fffff>
63 ; Test a doubleword-granularity replicate that has the upper 45 bits set.
64 define <2 x double> @f8() {
66 ; CHECK: vgmg %v24, 0, 44
68 ret <2 x double> <double 0xfffffffffff80000, double 0xfffffffffff80000>
71 ; Test a doubleword-granularity replicate that has middle bits set.
72 define <2 x double> @f9() {
74 ; CHECK: vgmg %v24, 2, 11
76 ret <2 x double> <double 0x3ff0000000000000, double 0x3ff0000000000000>
79 ; Test a doubleword-granularity replicate with a wrap-around mask.
80 define <2 x double> @f10() {
82 ; CHECK: vgmg %v24, 10, 0
84 ret <2 x double> <double 0x803fffffffffffff, double 0x803fffffffffffff>