projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67649df
)
Ensure these casts are done with the hardware fildll instruction
author
Chris Lattner
<sabre@nondot.org>
Sat, 14 May 2005 07:09:25 +0000
(07:09 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 14 May 2005 07:09:25 +0000
(07:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22013
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/CodeGen/X86/fildll.ll
[new file with mode: 0644]
patch
|
blob
diff --git a/test/CodeGen/X86/fildll.ll
b/test/CodeGen/X86/fildll.ll
new file mode 100644
(file)
index 0000000..
a9808df
--- /dev/null
+++ b/
test/CodeGen/X86/fildll.ll
@@ -0,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
+}