Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin9 -mattr=+sse2 | FileCheck %s
      2 
      3 ; CHECK-NOT: movl
      4 
      5 	%struct.dpoint = type { double, double }
      6 
      7 define %struct.dpoint @midpoint(i64 %p1.0, i64 %p2.0) nounwind readnone {
      8 entry:
      9 	%0 = trunc i64 %p1.0 to i32		; <i32> [#uses=1]
     10 	%1 = sitofp i32 %0 to double		; <double> [#uses=1]
     11 	%2 = trunc i64 %p2.0 to i32		; <i32> [#uses=1]
     12 	%3 = sitofp i32 %2 to double		; <double> [#uses=1]
     13 	%4 = fadd double %1, %3		; <double> [#uses=1]
     14 	%5 = fmul double %4, 5.000000e-01		; <double> [#uses=1]
     15 	%6 = lshr i64 %p1.0, 32		; <i64> [#uses=1]
     16 	%7 = trunc i64 %6 to i32		; <i32> [#uses=1]
     17 	%8 = sitofp i32 %7 to double		; <double> [#uses=1]
     18 	%9 = lshr i64 %p2.0, 32		; <i64> [#uses=1]
     19 	%10 = trunc i64 %9 to i32		; <i32> [#uses=1]
     20 	%11 = sitofp i32 %10 to double		; <double> [#uses=1]
     21 	%12 = fadd double %8, %11		; <double> [#uses=1]
     22 	%13 = fmul double %12, 5.000000e-01		; <double> [#uses=1]
     23 	%mrv3 = insertvalue %struct.dpoint undef, double %5, 0		; <%struct.dpoint> [#uses=1]
     24 	%mrv4 = insertvalue %struct.dpoint %mrv3, double %13, 1		; <%struct.dpoint> [#uses=1]
     25 	ret %struct.dpoint %mrv4
     26 }
     27