Skip to content

Commit 8042037

Browse files
committed
Refactor test, remove deprecated undef
1 parent bfb34a2 commit 8042037

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

llvm/test/CodeGen/X86/ifma-combine-vpmadd52.ll

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,9 @@ define <8 x i64> @const_2pow51_times_2(<8 x i64> %acc) #0 {
155155
; X64: vpaddq
156156
; X64: ret
157157
entry:
158-
%a = insertelement <8 x i64> undef, i64 2251799813685248, i32 0 ; 2^51
159-
%a.s = shufflevector <8 x i64> %a, <8 x i64> poison, <8 x i32> splat (i32 0)
160-
%b = insertelement <8 x i64> undef, i64 2, i32 0
161-
%b.s = shufflevector <8 x i64> %b, <8 x i64> poison, <8 x i32> splat (i32 0)
162-
%mul = mul <8 x i64> %a.s, %b.s ; product = 2^52
163-
%res = add <8 x i64> %acc, %mul ; needs full low-64 add
158+
; product = 2^52
159+
%mul = mul <8 x i64> splat(i64 2251799813685248), splat(i64 2)
160+
%res = add <8 x i64> %acc, %mul ; needs full low-64 add
164161
ret <8 x i64> %res
165162
}
166163

0 commit comments

Comments
 (0)