X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=test%2FCodeGen%2FSystemZ%2Fvec-const-03.ll;h=adc1105229e68d3a6017778f2568ca980a142237;hp=45ed83866d5559c0c72319b66534299f9efd797d;hb=538287dea2e6ae17a0f81615097c4de0df5d1e4d;hpb=cf0fa9b9dd296771a2de766c5262b96938cf13a3 diff --git a/test/CodeGen/SystemZ/vec-const-03.ll b/test/CodeGen/SystemZ/vec-const-03.ll index 45ed83866d5..adc1105229e 100644 --- a/test/CodeGen/SystemZ/vec-const-03.ll +++ b/test/CodeGen/SystemZ/vec-const-03.ll @@ -41,3 +41,19 @@ define <4 x i32> @f5() { ; CHECK: br %r14 ret <4 x i32> } + +; Test an all-zeros v2i32 that gets promoted to v4i32. +define <2 x i32> @f6() { +; CHECK-LABEL: f6: +; CHECK: vgbm %v24, 0 +; CHECK: br %r14 + ret <2 x i32> zeroinitializer +} + +; Test a mixed v2i32 that gets promoted to v4i32 (mask 0xae00). +define <2 x i32> @f7() { +; CHECK-LABEL: f7: +; CHECK: vgbm %v24, 44544 +; CHECK: br %r14 + ret <2 x i32> +}