summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2019-07-08 15:38:03 +0000
committerSanjay Patel <spatel@rotateright.com>2019-07-08 15:38:03 +0000
commit320a28200f24452b224fb472529adba0964399ab (patch)
tree2d4d436d270aea5b3e90a1909552b68c88174626
parent060921dee71500a3096f7ed5b32620b1066f5724 (diff)
downloadbcm5719-llvm-320a28200f24452b224fb472529adba0964399ab.tar.gz
bcm5719-llvm-320a28200f24452b224fb472529adba0964399ab.zip
[InstCombine] fix typo in test; NFC
I added this test in rL365325, but didn't mean to create an undef insert. llvm-svn: 365333
-rw-r--r--llvm/test/Transforms/InstCombine/insert-extract-shuffle.ll8
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/test/Transforms/InstCombine/insert-extract-shuffle.ll b/llvm/test/Transforms/InstCombine/insert-extract-shuffle.ll
index e6fc0129614..f3cb6ff9fae 100644
--- a/llvm/test/Transforms/InstCombine/insert-extract-shuffle.ll
+++ b/llvm/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> <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
}
OpenPOWER on IntegriCloud