llvm-6502/lib
Nate Begeman f63be7d395 First round of support for doing scalar FP using the SSE2 ISA extension and
XMM registers.  There are many known deficiencies and fixmes, which will be
addressed ASAP.  The major benefit of this work is that it will allow the
LLVM register allocator to allocate FP registers across basic blocks.

The x86 backend will still default to x87 style FP.  To enable this work,
you must pass -enable-sse-scalar-fp and either -sse2 or -sse3 to llc.

An example before and after would be for:
double foo(double *P) { double Sum = 0; int i; for (i = 0; i < 1000; ++i)
                        Sum += P[i]; return Sum; }

The inner loop looks like the following:
x87:
.LBB_foo_1:     # no_exit
        fldl (%esp)
        faddl (%eax,%ecx,8)
        fstpl (%esp)
        incl %ecx
        cmpl $1000, %ecx
        #FP_REG_KILL
        jne .LBB_foo_1  # no_exit

SSE2:
        addsd (%eax,%ecx,8), %xmm0
        incl %ecx
        cmpl $1000, %ecx
        #FP_REG_KILL
        jne .LBB_foo_1  # no_exit


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22340 91177308-0d34-0410-b5e6-96231b3b80d8
2005-07-06 18:59:04 +00:00
..
Analysis the correct fix was to fix AliasAnalysis.getModRefInfo 2005-06-20 15:25:22 +00:00
Archive Remove vim settings from source code; people should use llvm/utils/vim/vimrc 2005-05-05 22:33:09 +00:00
AsmParser Fix grammar 2005-06-24 18:00:40 +00:00
Bytecode If we support structs as va_list, we must pass pointers to them to va_copy 2005-06-22 21:04:42 +00:00
CodeGen Make several cleanups to Andrews varargs change: 2005-07-05 19:57:53 +00:00
Debugger Remove trailing whitespace 2005-04-21 22:36:52 +00:00
ExecutionEngine core changes for varargs 2005-06-18 18:34:52 +00:00
Linker Preserve CC's when linking modules 2005-05-09 01:09:39 +00:00
Support HP-UX system headers make a mess of isinf(), so much so that gcc fixincludes 2005-05-16 06:45:57 +00:00
System Put in a hack for Cygwin that prevents mkdtemp from being used since 2005-06-02 05:38:20 +00:00
Target First round of support for doing scalar FP using the SSE2 ISA extension and 2005-07-06 18:59:04 +00:00
Transforms Fix PR590 and Transforms/Mem2Reg/2005-06-30-ReadBeforeWrite.ll. 2005-06-30 07:29:44 +00:00
VMCore core changes for varargs 2005-06-18 18:34:52 +00:00
Makefile Add the Linker library 2004-11-14 21:54:41 +00:00