Skip to content
  1. Jun 21, 2006
    • Chris Lattner's avatar
      Add some more immediate patterns. This allows us to compile: · d881f825
      Chris Lattner authored
      void test6() {
        Y = 0xABCD0123BCDE4567;
      }
      
      into:
      
      _test6:
              lis r2, -21555
              lis r3, ha16(_Y)
              ori r2, r2, 291
              rldicr r2, r2, 32, 31
              oris r2, r2, 48350
              ori r2, r2, 17767
              std r2, lo16(_Y)(r3)
              blr
      
      llvm-svn: 28885
      d881f825
    • Chris Lattner's avatar
      Instead of li/xoris use li/oris. Note that this doesn't work if bit 15 is · 9834ad2f
      Chris Lattner authored
      set, so disable the pattern in that case.
      
      llvm-svn: 28884
      9834ad2f
    • Chris Lattner's avatar
      Add some 64-bit logical ops. · 7e742e46
      Chris Lattner authored
      Split imm16Shifted into a sext/zext form for 64-bit support.
      Add some patterns for immediate formation.  For example, we now compile this:
      
      static unsigned long long Y;
      void test3() {
        Y = 0xF0F00F00;
      }
      
      into:
      
      _test3:
              li r2, 3840
              lis r3, ha16(_Y)
              xoris r2, r2, 61680
              std r2, lo16(_Y)(r3)
              blr
      
      GCC produces:
      
      _test3:
              li r0,0
              lis r2,ha16(_Y)
              ori r0,r0,61680
              sldi r0,r0,16
              ori r0,r0,3840
              std r0,lo16(_Y)(r2)
              blr
      
      llvm-svn: 28883
      7e742e46
  2. Jun 20, 2006
  3. Jun 17, 2006
  4. Jun 16, 2006
  5. Jun 15, 2006
  6. Jun 14, 2006
  7. Jun 13, 2006
    • Chris Lattner's avatar
      Gaar! Don't use r11 for CR save/restore, use R0. R11 can be register · ac59ab51
      Chris Lattner authored
      allocated, thus live across the save/reload.  This fixes
      
      llc-beta /MultiSource/Applications/spiff/spiff
      llc-beta /MultiSource/Benchmarks/sim/sim:
      llc-beta /MultiSource/Benchmarks/Ptrdist/bc/bc
      llc-beta /MultiSource/Benchmarks/McCat/12-IOtest/iotest:
      llc-beta /MultiSource/Benchmarks/FreeBench/fourinarow/fourinarow
      llc-beta /MultiSource/Benchmarks/Fhourstones-3.1/fhourstones3.1
      llc-beta /MultiSource/Benchmarks/mediabench/adpcm/rawdaudio/rawdaudio
      llc-beta /MultiSource/Benchmarks/mediabench/adpcm/rawcaudio/rawcaudio
      llc-beta /MultiSource/Benchmarks/mediabench/g721/g721encode/encode
      llc-beta /MultiSource/Benchmarks/mediabench/jpeg/jpeg-6a/cjpeg
      
      and probably others, with -regalloc=local.
      
      llvm-svn: 28761
      ac59ab51
  8. Jun 12, 2006
  9. Jun 10, 2006
  10. Jun 06, 2006
  11. Jun 01, 2006
  12. May 30, 2006
  13. May 27, 2006
  14. May 25, 2006
  15. May 24, 2006
  16. May 21, 2006
  17. May 20, 2006
  18. May 18, 2006
Loading