[llvm-commits] CVS: llvm/lib/Target/X86/README.txt
Evan Cheng
evan.cheng at apple.com
Wed Jul 19 14:29:42 PDT 2006
Changes in directory llvm/lib/Target/X86:
README.txt updated: 1.119 -> 1.120
---
Log message:
New entry.
---
Diffs of the changes: (+25 -0)
README.txt | 25 +++++++++++++++++++++++++
1 files changed, 25 insertions(+)
Index: llvm/lib/Target/X86/README.txt
diff -u llvm/lib/Target/X86/README.txt:1.119 llvm/lib/Target/X86/README.txt:1.120
--- llvm/lib/Target/X86/README.txt:1.119 Wed Jul 19 01:06:24 2006
+++ llvm/lib/Target/X86/README.txt Wed Jul 19 16:29:30 2006
@@ -709,3 +709,28 @@
JIT should resolve __cxa_atexit on Mac OS X. In a non-jit environment, the
symbol is a dynamically resolved by the linker.
+
+//===---------------------------------------------------------------------===//
+
+u32 to float conversion improvement:
+
+float uint32_2_float( unsigned u ) {
+ float fl = (int) (u & 0xffff);
+ float fh = (int) (u >> 16);
+ fh *= 0x1.0p16f;
+ return fh + fl;
+}
+
+00000000 subl $0x04,%esp
+00000003 movl 0x08(%esp,1),%eax
+00000007 movl %eax,%ecx
+00000009 shrl $0x10,%ecx
+0000000c cvtsi2ss %ecx,%xmm0
+00000010 andl $0x0000ffff,%eax
+00000015 cvtsi2ss %eax,%xmm1
+00000019 mulss 0x00000078,%xmm0
+00000021 addss %xmm1,%xmm0
+00000025 movss %xmm0,(%esp,1)
+0000002a flds (%esp,1)
+0000002d addl $0x04,%esp
+00000030 ret
More information about the llvm-commits
mailing list