Skip to content
  1. Jun 27, 2005
  2. Jun 25, 2005
  3. Jun 24, 2005
  4. Jun 23, 2005
  5. Jun 22, 2005
  6. Jun 20, 2005
  7. Jun 19, 2005
  8. Jun 18, 2005
  9. Jun 17, 2005
  10. Jun 15, 2005
  11. Jun 14, 2005
  12. Jun 13, 2005
  13. Jun 08, 2005
    • Andrew Lenharth's avatar
      fix BranchCC with a setCC with an arg of 0 · c504a3db
      Andrew Lenharth authored
      llvm-svn: 22203
      c504a3db
    • Reid Spencer's avatar
      For PR572: · 8086cfaa
      Reid Spencer authored
      Undefine the PPC symbol which is defined by Linux/PPC (erroneously) so it
      doesn't pollute the user namespace and clash with our namespace declarations.
      
      llvm-svn: 22202
      8086cfaa
    • Nate Begeman's avatar
      Handle some more real world cases of rlwimi. These don't come up that · 60cf00c9
      Nate Begeman authored
      regularly in "normal" code, but for things like software graphics, they
      make a big difference.
      
      For the following code:
      unsigned short Trans16Bit(unsigned srcA,unsigned srcB,unsigned alpha)
      {
      	unsigned tmpA,tmpB,mixed;
      	tmpA = ((srcA & 0x03E0) << 15) | (srcA & 0x7C1F);
      	tmpB = ((srcB & 0x03E0) << 15) | (srcB & 0x7C1F);
      	mixed = (tmpA * alpha) + (tmpB * (32 - alpha));
      	return ((mixed >> 5) & 0x7C1F) | ((mixed >> 20) & 0x03E0);
      }
      
      We now generate:
      _Trans16Bit:
      .LBB_Trans16Bit_0:      ; entry
              andi. r2, r4, 31775
              rlwimi r2, r4, 15, 7, 11
              subfic r4, r5, 32
              mullw r2, r2, r4
              andi. r4, r3, 31775
              rlwimi r4, r3, 15, 7, 11
              mullw r3, r4, r5
              add r2, r2, r3
              srwi r3, r2, 5
              andi. r3, r3, 31775
              rlwimi r3, r2, 12, 22, 26
              blr
      
      Instead of:
      _Trans16Bit:
      .LBB_Trans16Bit_0:      ; entry
              slwi r2, r4, 15
              rlwinm r2, r2, 0, 7, 11
              andi. r4, r4, 31775
              or r2, r2, r4
              subfic r4, r5, 32
              mullw r2, r2, r4
              slwi r4, r3, 15
              rlwinm r4, r4, 0, 7, 11
              andi. r3, r3, 31775
              or r3, r4, r3
              mullw r3, r3, r5
              add r2, r2, r3
              srwi r3, r2, 5
              andi. r3, r3, 31775
              srwi r2, r2, 20
              rlwimi r3, r2, 0, 22, 26
              blr
      
      llvm-svn: 22201
      60cf00c9
    • Nate Begeman's avatar
      Fix lli linking on Mac OS X 10.4.1 for Intel. · 85c7d546
      Nate Begeman authored
      llvm-svn: 22200
      85c7d546
  14. Jun 06, 2005
Loading