Skip to content

Commit

Permalink
[InstCombine] fix typo in test; NFC
Browse files Browse the repository at this point in the history
I added this test in rL365325, but didn't mean to create an undef insert.

llvm-svn: 365333
  • Loading branch information
rotateright committed Jul 8, 2019
1 parent 060921d commit 320a282
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions llvm/test/Transforms/InstCombine/insert-extract-shuffle.ll
Original file line number Diff line number Diff line change
Expand Up @@ -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> <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
}

Expand Down

0 comments on commit 320a282

Please sign in to comment.