From b1468daf0059e92d565346f08ccc12dab2d038a2 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Tue, 24 Feb 2015 21:46:23 +0000 Subject: [PATCH] Added test case for PR22678 (check CONCAT_VECTORS DAG combiner pass doesn't introduce illegal types) llvm-svn: 230386 --- llvm/test/CodeGen/ARM/vector-DAGCombine.ll | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/llvm/test/CodeGen/ARM/vector-DAGCombine.ll b/llvm/test/CodeGen/ARM/vector-DAGCombine.ll index 759da2235e41..566e955af2b1 100644 --- a/llvm/test/CodeGen/ARM/vector-DAGCombine.ll +++ b/llvm/test/CodeGen/ARM/vector-DAGCombine.ll @@ -27,6 +27,14 @@ entry: ret void } +; PR22678 +; Check CONCAT_VECTORS DAG combiner pass doesn't introduce illegal types. +define void @test_pr22678() { + %1 = fptoui <16 x float> undef to <16 x i8> + store <16 x i8> %1, <16 x i8>* undef + ret void +} + ; Radar 8407927: Make sure that VMOVRRD gets optimized away when the result is ; converted back to be used as a vector type. ; CHECK-LABEL: test_vmovrrd_combine: