• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc < %s -mtriple=i686-unknown-unknown -mattr=+sse,-sse2,-x87 | FileCheck %s
3
4define void @foo(i64 %x, float* %b) {
5; CHECK-LABEL: foo:
6; CHECK:       # %bb.0: # %entry
7; CHECK-NEXT:    pushl %esi
8; CHECK-NEXT:    .cfi_def_cfa_offset 8
9; CHECK-NEXT:    .cfi_offset %esi, -8
10; CHECK-NEXT:    movl {{[0-9]+}}(%esp), %esi
11; CHECK-NEXT:    pushl {{[0-9]+}}(%esp)
12; CHECK-NEXT:    .cfi_adjust_cfa_offset 4
13; CHECK-NEXT:    pushl {{[0-9]+}}(%esp)
14; CHECK-NEXT:    .cfi_adjust_cfa_offset 4
15; CHECK-NEXT:    calll __floatdisf
16; CHECK-NEXT:    addl $8, %esp
17; CHECK-NEXT:    .cfi_adjust_cfa_offset -8
18; CHECK-NEXT:    movl %eax, (%esi)
19; CHECK-NEXT:    popl %esi
20; CHECK-NEXT:    .cfi_def_cfa_offset 4
21; CHECK-NEXT:    retl
22entry:
23  %conv = sitofp i64 %x to float
24  store float %conv, float* %b
25  ret void
26}
27