<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Inefficient codegen for postincrement of _ExtInt(256)"
   href="https://bugs.llvm.org/show_bug.cgi?id=45650">45650</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Inefficient codegen for postincrement of _ExtInt(256)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>arthur.j.odwyer@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The following source code:

// <a href="https://wide.godbolt.org/z/t6j6Z">https://wide.godbolt.org/z/t6j6Z</a>-
using uint256 = unsigned _ExtInt(256);
extern auto inc2(uint256& a)
{
    return a++;
}

produces the following x86-64 assembly at -O3:

inc2(unsigned int _ExtInt<256>&): # @inc2(unsigned int _ExtInt<256>&)
  pushq %rbx
  movq %rdi, %rax
  movq 24(%rsi), %r8
  movq 16(%rsi), %r11
  movq (%rsi), %r9
  movq 8(%rsi), %r10
  movq %r9, %rdi
  addq $1, %rdi
  movq %r10, %rcx
  adcq $0, %rcx
  movq %r11, %rdx
  adcq $0, %rdx
  movq %r8, %rbx
  adcq $0, %rbx
  movq %rdi, (%rsi)
  movq %rcx, 8(%rsi)
  movq %rdx, 16(%rsi)
  movq %rbx, 24(%rsi)
  movq %r11, 16(%rax)
  movq %r8, 24(%rax)
  movq %r9, (%rax)
  movq %r10, 8(%rax)
  popq %rbx
  retq

Also, completely tangential, I notice that the demangler thinks the spelling is
`ExtInt<256>`, but the real syntax is supposed to be `_ExtInt(256)`.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>