1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=i686-unknown -mattr=+sse2 | FileCheck %s --check-prefix=X86
3 ; RUN: llc < %s -mtriple=x86_64-unknown -mattr=+sse2 | FileCheck %s --check-prefix=X64
5 define void @PR34855(<2 x i32> *%p0, <2 x i32> *%p1, <2 x i32> *%p2) {
8 ; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
9 ; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
10 ; X86-NEXT: movsd {{.*#+}} xmm0 = mem[0],zero
11 ; X86-NEXT: movsd %xmm0, (%eax)
16 ; X64-NEXT: movq (%rdi), %rax
17 ; X64-NEXT: movq %rax, (%rdx)
19 %tmp = load <2 x i32>, <2 x i32>* %p0, align 8
20 %tmp1 = load <2 x i32>, <2 x i32>* %p1, align 8
21 %mul = mul <2 x i32> zeroinitializer, %tmp1
22 %mul1 = mul <2 x i32> <i32 -8190, i32 -8190>, %mul
23 %mul2 = mul <2 x i32> <i32 3, i32 3>, %mul1
24 %shr = ashr <2 x i32> %tmp, %mul2
25 store <2 x i32> %shr, <2 x i32>* %p2, align 8