Skip to content

Commit ecd8113

Browse files
Update test X86/vec-load-combine.ll
1 parent 8d53fca commit ecd8113

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

llvm/test/Transforms/PhaseOrdering/X86/vec-load-combine.ll

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,13 @@ define dso_local noundef <4 x float> @ConvertVectors_ByRef(ptr noundef nonnull a
4747
define noundef <4 x float> @ConvertVectors_ByVal(ptr noundef nonnull align 16 dereferenceable(16) %V) #0 {
4848
; SSE-LABEL: @ConvertVectors_ByVal(
4949
; SSE-NEXT: entry:
50-
; SSE-NEXT: [[V_VAL20:%.*]] = load i64, ptr [[V:%.*]], align 16
51-
; SSE-NEXT: [[TMP0:%.*]] = getelementptr inbounds nuw i8, ptr [[V]], i64 8
52-
; SSE-NEXT: [[V_VAL421:%.*]] = load i64, ptr [[TMP0]], align 8
50+
; SSE-NEXT: [[TMP0:%.*]] = load <2 x i64>, ptr [[V:%.*]], align 16
51+
; SSE-NEXT: [[V_VAL20:%.*]] = load i64, ptr [[V]], align 16
5352
; SSE-NEXT: [[TMP1:%.*]] = lshr i64 [[V_VAL20]], 32
54-
; SSE-NEXT: [[TMP2:%.*]] = insertelement <2 x i64> poison, i64 [[V_VAL20]], i64 0
55-
; SSE-NEXT: [[TMP3:%.*]] = insertelement <2 x i64> [[TMP2]], i64 [[TMP1]], i64 1
56-
; SSE-NEXT: [[TMP4:%.*]] = trunc <2 x i64> [[TMP3]] to <2 x i32>
57-
; SSE-NEXT: [[TMP9:%.*]] = bitcast <2 x i32> [[TMP4]] to <2 x float>
58-
; SSE-NEXT: [[TMP6:%.*]] = shufflevector <2 x float> [[TMP9]], <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 poison, i32 poison>
59-
; SSE-NEXT: [[TMP7:%.*]] = trunc i64 [[V_VAL421]] to i32
60-
; SSE-NEXT: [[TMP8:%.*]] = bitcast i32 [[TMP7]] to float
61-
; SSE-NEXT: [[VECINIT11:%.*]] = insertelement <4 x float> [[TMP6]], float [[TMP8]], i64 2
62-
; SSE-NEXT: [[TMP5:%.*]] = insertelement <4 x float> [[VECINIT11]], float [[TMP8]], i64 3
53+
; SSE-NEXT: [[TMP2:%.*]] = shufflevector <2 x i64> [[TMP0]], <2 x i64> poison, <4 x i32> <i32 0, i32 poison, i32 1, i32 1>
54+
; SSE-NEXT: [[TMP3:%.*]] = insertelement <4 x i64> [[TMP2]], i64 [[TMP1]], i64 1
55+
; SSE-NEXT: [[TMP4:%.*]] = trunc <4 x i64> [[TMP3]] to <4 x i32>
56+
; SSE-NEXT: [[TMP5:%.*]] = bitcast <4 x i32> [[TMP4]] to <4 x float>
6357
; SSE-NEXT: ret <4 x float> [[TMP5]]
6458
;
6559
; AVX-LABEL: @ConvertVectors_ByVal(

0 commit comments

Comments
 (0)