mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-26 23:38:31 +00:00
[InstCombine] fix typo in test; NFC
I added this test in rL365325, but didn't mean to create an undef insert. llvm-svn: 365333
This commit is contained in:
parent
291f0c53e6
commit
cc882d181c
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user