1 ; Test vector byte masks, v2f64 version.
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 | FileCheck %s
5 ; Test an all-zeros vector.
6 define <2 x double> @f1() {
10 ret <2 x double> zeroinitializer
13 ; Test an all-ones vector.
14 define <2 x double> @f2() {
16 ; CHECK: vgbm %v24, 65535
18 ret <2 x double> <double 0xffffffffffffffff, double 0xffffffffffffffff>
21 ; Test a mixed vector (mask 0x8c76).
22 define <2 x double> @f3() {
24 ; CHECK: vgbm %v24, 35958
26 ret <2 x double> <double 0xff000000ffff0000, double 0x00ffffff00ffff00>
29 ; Test that undefs are treated as zero (mask 0x8c00).
30 define <2 x double> @f4() {
32 ; CHECK: vgbm %v24, 35840
34 ret <2 x double> <double 0xff000000ffff0000, double undef>
37 ; Test that we don't use VGBM if one of the bytes is not 0 or 0xff.
38 define <2 x double> @f5() {
42 ret <2 x double> <double 0xfe000000ffff0000, double 0x00ffffff00ffff00>