1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=i686-linux-pc | FileCheck %s
4 define void @test_convert_float2_ulong2(ptr nocapture %src, ptr nocapture %dest) nounwind {
5 ; CHECK-LABEL: test_convert_float2_ulong2:
7 ; CHECK-NEXT: pushl %edi
8 ; CHECK-NEXT: pushl %esi
9 ; CHECK-NEXT: subl $20, %esp
10 ; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax
11 ; CHECK-NEXT: movl {{[0-9]+}}(%esp), %ecx
12 ; CHECK-NEXT: movl 168(%ecx), %edx
13 ; CHECK-NEXT: movl 172(%ecx), %esi
14 ; CHECK-NEXT: movl 160(%ecx), %edi
15 ; CHECK-NEXT: movl 164(%ecx), %ecx
16 ; CHECK-NEXT: movl %ecx, {{[0-9]+}}(%esp)
17 ; CHECK-NEXT: movl %edi, (%esp)
18 ; CHECK-NEXT: movl %esi, {{[0-9]+}}(%esp)
19 ; CHECK-NEXT: movl %edx, {{[0-9]+}}(%esp)
20 ; CHECK-NEXT: shrl $31, %ecx
21 ; CHECK-NEXT: fildll (%esp)
22 ; CHECK-NEXT: fadds {{\.?LCPI[0-9]+_[0-9]+}}(,%ecx,4)
23 ; CHECK-NEXT: shrl $31, %esi
24 ; CHECK-NEXT: fildll {{[0-9]+}}(%esp)
25 ; CHECK-NEXT: fadds {{\.?LCPI[0-9]+_[0-9]+}}(,%esi,4)
26 ; CHECK-NEXT: fstps 84(%eax)
27 ; CHECK-NEXT: fstps 80(%eax)
28 ; CHECK-NEXT: addl $20, %esp
29 ; CHECK-NEXT: popl %esi
30 ; CHECK-NEXT: popl %edi
32 %t0 = getelementptr <2 x i64>, ptr %src, i32 10
33 %t1 = load <2 x i64>, ptr %t0, align 16
34 %t2 = uitofp <2 x i64> %t1 to <2 x float>
35 %t3 = getelementptr <2 x float>, ptr %dest, i32 10
36 store <2 x float> %t2, ptr %t3, align 8