[llvm-commits] CVS: llvm/test/Regression/CodeGen/X86/fildll.ll

Chris Lattner lattner at cs.uiuc.edu
Sat May 14 00:09:47 PDT 2005



Changes in directory llvm/test/Regression/CodeGen/X86:

fildll.ll added (r1.1)
---
Log message:

Ensure these casts are done with the hardware fildll instruction


---
Diffs of the changes:  (+11 -0)

 fildll.ll |   11 +++++++++++
 1 files changed, 11 insertions(+)


Index: llvm/test/Regression/CodeGen/X86/fildll.ll
diff -c /dev/null llvm/test/Regression/CodeGen/X86/fildll.ll:1.1
*** /dev/null	Sat May 14 02:09:36 2005
--- llvm/test/Regression/CodeGen/X86/fildll.ll	Sat May 14 02:09:25 2005
***************
*** 0 ****
--- 1,11 ----
+ ; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=att | grep fildll | wc -l | grep 2
+ 
+ fastcc double %sint64_to_fp(long %X) {
+ 	%R = cast long %X to double
+ 	ret double %R
+ }
+ 
+ fastcc double %uint64_to_fp(ulong %X) {
+ 	%R = cast ulong %X to double
+ 	ret double %R
+ }






More information about the llvm-commits mailing list