Skip to content
Snippets Groups Projects
Commit ab98c413 authored by Chris Lattner's avatar Chris Lattner
Browse files

add a note

llvm-svn: 44299
parent f5dfd15e
No related branches found
No related tags found
No related merge requests found
...@@ -1511,3 +1511,24 @@ LBB1_4: # cond_true ...@@ -1511,3 +1511,24 @@ LBB1_4: # cond_true
cmpl $262144, %eax cmpl $262144, %eax
//===---------------------------------------------------------------------===// //===---------------------------------------------------------------------===//
define i64 @test(double %X) {
%Y = fptosi double %X to i64
ret i64 %Y
}
compiles to:
_test:
subl $20, %esp
movsd 24(%esp), %xmm0
movsd %xmm0, 8(%esp)
fldl 8(%esp)
fisttpll (%esp)
movl 4(%esp), %edx
movl (%esp), %eax
addl $20, %esp
#FP_REG_KILL
ret
This should just fldl directly from the input stack slot.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment