X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FCodeGen%2FSystemZ%2Fvec-const-02.ll;h=73a89d4a841bf7da2337f33afed29648052858be;hb=538287dea2e6ae17a0f81615097c4de0df5d1e4d;hp=541cbb9facac31d83c4d83112a73db56d09f8490;hpb=cf0fa9b9dd296771a2de766c5262b96938cf13a3;p=oota-llvm.git diff --git a/test/CodeGen/SystemZ/vec-const-02.ll b/test/CodeGen/SystemZ/vec-const-02.ll index 541cbb9faca..73a89d4a841 100644 --- a/test/CodeGen/SystemZ/vec-const-02.ll +++ b/test/CodeGen/SystemZ/vec-const-02.ll @@ -45,3 +45,35 @@ define <8 x i16> @f5() { ret <8 x i16> } + +; Test an all-zeros v2i16 that gets promoted to v8i16. +define <2 x i16> @f6() { +; CHECK-LABEL: f6: +; CHECK: vgbm %v24, 0 +; CHECK: br %r14 + ret <2 x i16> zeroinitializer +} + +; Test a mixed v2i16 that gets promoted to v8i16 (mask 0xc000). +define <2 x i16> @f7() { +; CHECK-LABEL: f7: +; CHECK: vgbm %v24, 49152 +; CHECK: br %r14 + ret <2 x i16> +} + +; Test an all-zeros v4i16 that gets promoted to v8i16. +define <4 x i16> @f8() { +; CHECK-LABEL: f8: +; CHECK: vgbm %v24, 0 +; CHECK: br %r14 + ret <4 x i16> zeroinitializer +} + +; Test a mixed v4i16 that gets promoted to v8i16 (mask 0x7200). +define <4 x i16> @f9() { +; CHECK-LABEL: f9: +; CHECK: vgbm %v24, 29184 +; CHECK: br %r14 + ret <4 x i16> +}