33 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mcpu=yonah | FileCheck %s3 4target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64"5target triple = "i686-apple-darwin8"6 7define void @test(ptr%b) {8; CHECK-LABEL: test:9; CHECK: ## %bb.0: ## %entry10; CHECK-NEXT: pushl %esi11; CHECK-NEXT: .cfi_def_cfa_offset 812; CHECK-NEXT: subl $8, %esp13; CHECK-NEXT: .cfi_def_cfa_offset 1614; CHECK-NEXT: .cfi_offset %esi, -815; CHECK-NEXT: movl {{[0-9]+}}(%esp), %esi16; CHECK-NEXT: calll _foo17; CHECK-NEXT: fstps {{[0-9]+}}(%esp)18; CHECK-NEXT: movss {{.*#+}} xmm0 = mem[0],zero,zero,zero19; CHECK-NEXT: cvtss2sd %xmm0, %xmm020; CHECK-NEXT: movsd %xmm0, (%esi)21; CHECK-NEXT: addl $8, %esp22; CHECK-NEXT: popl %esi23; CHECK-NEXT: retl24entry:25 %tmp13 = tail call double @foo()26 %tmp1314 = fptrunc double %tmp13 to float ; <float> [#uses=1]27 %tmp3940 = fpext float %tmp1314 to double ; <double> [#uses=1]28 store volatile double %tmp3940, ptr %b29 ret void30}31 32declare double @foo()33