1. Apr 11, 2013
    • Chad Rosier's avatar
      Reapply r179115, but use parsePrimaryExpression a little more judiciously. · 1863f4f4
      Chad Rosier authored
      Test cases that regressed due to r179115, plus a few more, were added in
      r179182.  Original commit message below:
      
      [ms-inline asm] Use parsePrimaryExpr in lieu of parseExpression if we need to
      parse an identifier.  Otherwise, parseExpression may parse multiple tokens,
      which makes it impossible to properly compute an immediate displacement.
      An example of such a case is the source operand (i.e., [Symbol + ImmDisp]) in
      the below example:
      
       __asm mov eax, [Symbol + ImmDisp]
      
      Part of rdar://13611297
      
      llvm-svn: 179187
      1863f4f4
    • Michel Danzer's avatar
      R600/SI: Add pattern for AMDGPUurecip · 8caa904b
      Michel Danzer authored
      
      
      21 more little piglits with radeonsi.
      
      Reviewed-by: default avatarTom Stellard <thomas.stellard@amd.com>
      llvm-svn: 179186
      8caa904b
    • Reed Kotler's avatar
      This is for an experimental option -mips-os16. The idea is to compile all · fe94cc3e
      Reed Kotler authored
      Mips32 code as Mips16 unless it can't be compiled as Mips 16. For now this
      would happen as long as floating point instructions are not needed.
      Probably it would also make sense to compile as mips32 if atomic operations
      are needed too. There may be other cases too.
      
      A module pass prescans the IR and adds the mips16 or nomips16 attribute
      to functions depending on the functions needs.
      
      Mips 16 mode can result in a 40% code compression by utililizing 16 bit
      encoding of many instructions.
      
      The hope is for this to replace the traditional gcc way of dealing with
      Mips16 code using floating point which involves essentially using soft float
      but with a library implemented using mips32 floating point. This gcc 
      method also requires creating stubs so that Mips32 code can interact with
      these Mips 16 functions that have floating point needs. My conjecture is
      that in reality this traditional gcc method would never win over this
      new method.
      
      I will be implementing the traditional gcc method also. Some of it is already
      done but I needed to do the stubs to finish the work and those required
      this mips16/32 mixed mode capability.
      
      I have more ideas for to make this new method much better and I think the old
      method will just live in llvm for anyone that needs the backward compatibility
      but I don't for what reason that would be needed.
      
      llvm-svn: 179185
      fe94cc3e
    • Peter Collingbourne's avatar
      Use a scheme closer to that of GNU as when deciding the type of a · adac407e
      Peter Collingbourne authored
      symbol with multiple .type declarations.
      
      Differential Revision: http://llvm-reviews.chandlerc.com/D607
      
      llvm-svn: 179184
      adac407e
    • Sebastian Pop's avatar
      fix testcase · 10066142
      Sebastian Pop authored
      llvm-svn: 179183
      10066142
    • Chad Rosier's avatar
      [ms-inline asm] Add a few test cases that were regressed by r179115. That · e6956c3e
      Chad Rosier authored
      commit was reverted in r179120, but I do plan on reapplying with a fix shortly.
      Part of rdar://13611297
      
      llvm-svn: 179182
      e6956c3e
    • Dmitri Gribenko's avatar
      Add testcases for -fparse-all-comments · 061f3284
      Dmitri Gribenko authored
      llvm-svn: 179181
      061f3284
  2. Apr 10, 2013