From: Sanjay Patel Date: Mon, 8 Jul 2019 15:38:03 +0000 (+0000) Subject: [InstCombine] fix typo in test; NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e3dca87669aeff835ad52eed45f439f0096b825a;p=llvm [InstCombine] fix typo in test; NFC I added this test in rL365325, but didn't mean to create an undef insert. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365333 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/InstCombine/insert-extract-shuffle.ll b/test/Transforms/InstCombine/insert-extract-shuffle.ll index e6fc0129614..f3cb6ff9fae 100644 --- a/test/Transforms/InstCombine/insert-extract-shuffle.ll +++ b/test/Transforms/InstCombine/insert-extract-shuffle.ll @@ -438,10 +438,12 @@ define <4 x float> @insert_nonzero_index_splat(float %x) { define <3 x double> @insert_nonzero_index_splat_narrow(double %x) { ; CHECK-LABEL: @insert_nonzero_index_splat_narrow( -; CHECK-NEXT: ret <3 x double> undef +; CHECK-NEXT: [[XV:%.*]] = insertelement <4 x double> undef, double [[X:%.*]], i32 3 +; CHECK-NEXT: [[SPLAT:%.*]] = shufflevector <4 x double> [[XV]], <4 x double> undef, <3 x i32> +; CHECK-NEXT: ret <3 x double> [[SPLAT]] ; - %xv = insertelement <4 x double> undef, double %x, i32 4 - %splat = shufflevector <4 x double> %xv, <4 x double> undef, <3 x i32> + %xv = insertelement <4 x double> undef, double %x, i32 3 + %splat = shufflevector <4 x double> %xv, <4 x double> undef, <3 x i32> ret <3 x double> %splat }