llvm-6502/lib/Target/X86
Nate Begeman 875f360e22 Fix FP_TO_UINT with Scalar SSE2 now that the legalizer can handle it. We
now generate the relatively good code sequences:
unsigned short foo(float a) { return a; }
_foo:
        movss 4(%esp), %xmm0
        cvttss2si %xmm0, %eax
        movzwl %ax, %eax
        ret

and
unsigned bar(float a) { return a; }
_bar:
        movss .CPI_bar_0, %xmm0
        movss 4(%esp), %xmm1
        movapd %xmm1, %xmm2
        subss %xmm0, %xmm2
        cvttss2si %xmm2, %eax
        xorl $-2147483648, %eax
        cvttss2si %xmm1, %ecx
        ucomiss %xmm0, %xmm1
        cmovb %ecx, %eax
        ret


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22786 91177308-0d34-0410-b5e6-96231b3b80d8
2005-08-14 04:36:51 +00:00
..
.cvsignore
Makefile
X86.h
X86.td
X86AsmPrinter.cpp Eliminate all remaining tabs and trailing spaces. 2005-07-27 06:12:32 +00:00
X86AsmPrinter.h
X86ATTAsmPrinter.cpp Eliminate all remaining tabs and trailing spaces. 2005-07-27 06:12:32 +00:00
X86ATTAsmPrinter.h
X86CodeEmitter.cpp
X86ELFWriter.cpp
X86FloatingPoint.cpp
X86InstrBuilder.h
X86InstrInfo.cpp
X86InstrInfo.h
X86InstrInfo.td Scalar SSE: load +0.0 -> xorps/xorpd 2005-08-03 23:26:28 +00:00
X86IntelAsmPrinter.cpp
X86IntelAsmPrinter.h
X86ISelPattern.cpp Fix FP_TO_UINT with Scalar SSE2 now that the legalizer can handle it. We 2005-08-14 04:36:51 +00:00
X86ISelSimple.cpp Update to use the new MathExtras.h support for log2 computation. 2005-08-02 19:26:06 +00:00
X86JITInfo.cpp
X86JITInfo.h turn off GOT on archs that didn't use it (not that it appeard to harm them much with it on) 2005-07-29 23:32:02 +00:00
X86PeepholeOpt.cpp Eliminate all remaining tabs and trailing spaces. 2005-07-27 06:12:32 +00:00
X86RegisterInfo.cpp Eliminate all remaining tabs and trailing spaces. 2005-07-27 06:12:32 +00:00
X86RegisterInfo.h
X86RegisterInfo.td
X86Relocations.h
X86Subtarget.cpp Add Subtarget support to PowerPC. Next up, using it. 2005-08-04 07:12:09 +00:00
X86Subtarget.h Add Subtarget support to PowerPC. Next up, using it. 2005-08-04 07:12:09 +00:00
X86TargetMachine.cpp Eliminate all remaining tabs and trailing spaces. 2005-07-27 06:12:32 +00:00
X86TargetMachine.h