[llvm] r365333 - [InstCombine] fix typo in test; NFC

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 8 08:38:04 PDT 2019


Author: spatel
Date: Mon Jul  8 08:38:03 2019
New Revision: 365333

URL: http://llvm.org/viewvc/llvm-project?rev=365333&view=rev
Log:
[InstCombine] fix typo in test; NFC

I added this test in rL365325, but didn't mean to create an undef insert.

Modified:
    llvm/trunk/test/Transforms/InstCombine/insert-extract-shuffle.ll

Modified: llvm/trunk/test/Transforms/InstCombine/insert-extract-shuffle.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/insert-extract-shuffle.ll?rev=365333&r1=365332&r2=365333&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/insert-extract-shuffle.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/insert-extract-shuffle.ll Mon Jul  8 08:38:03 2019
@@ -438,10 +438,12 @@ define <4 x float> @insert_nonzero_index
 
 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> <i32 3, i32 undef, i32 3>
+; 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> <i32 4, i32 undef, i32 4>
+  %xv = insertelement <4 x double> undef, double %x, i32 3
+  %splat = shufflevector <4 x double> %xv, <4 x double> undef, <3 x i32> <i32 3, i32 undef, i32 3>
   ret <3 x double> %splat
 }
 




More information about the llvm-commits mailing list