<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - __attribute__ ((interrupt)) uses xmm31 with -march=nehalem"
   href="https://llvm.org/bugs/show_bug.cgi?id=26409">26409</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>__attribute__ ((interrupt)) uses xmm31 with -march=nehalem
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>hjl.tools@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>kevin.b.smith@intel.com, llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>hjl@gnu-6 interrupt-8]$ cat x.i
extern void subroutine1(void);

__attribute__ ((interrupt))
void ih(void * frame)
{
  subroutine1();
}
[hjl@gnu-6 interrupt-8]$ make
/export/build/gnu/llvm-clang-bootstrap/stage1/build-x86_64-linux/bin/clang -O2
-Wall -march=nehalem -S -o x.s x.i
grep xmm x.s
    movaps    %xmm31, 368(%rsp)       # 16-byte Spill
    movaps    %xmm30, 352(%rsp)       # 16-byte Spill
    movaps    %xmm29, 336(%rsp)       # 16-byte Spill
    movaps    %xmm28, 320(%rsp)       # 16-byte Spill
    movaps    %xmm27, 304(%rsp)       # 16-byte Spill
    movaps    %xmm26, 288(%rsp)       # 16-byte Spill
    movaps    %xmm25, 272(%rsp)       # 16-byte Spill
    movaps    %xmm24, 256(%rsp)       # 16-byte Spill
    movaps    %xmm23, 240(%rsp)       # 16-byte Spill
    movaps    %xmm22, 224(%rsp)       # 16-byte Spill
    movaps    %xmm21, 208(%rsp)       # 16-byte Spill
    movaps    %xmm20, 192(%rsp)       # 16-byte Spill
    movaps    %xmm19, 176(%rsp)       # 16-byte Spill
    movaps    %xmm18, 160(%rsp)       # 16-byte Spill
    movaps    %xmm17, 144(%rsp)       # 16-byte Spill
    movaps    %xmm16, 128(%rsp)       # 16-byte Spill
    movaps    %xmm15, 112(%rsp)       # 16-byte Spill
    movaps    %xmm14, 96(%rsp)        # 16-byte Spill
    movaps    %xmm13, 80(%rsp)        # 16-byte Spill
    movaps    %xmm12, 64(%rsp)        # 16-byte Spill
    movaps    %xmm11, 48(%rsp)        # 16-byte Spill
    movaps    %xmm10, 32(%rsp)        # 16-byte Spill
    movaps    %xmm9, 16(%rsp)         # 16-byte Spill
    movaps    %xmm8, (%rsp)           # 16-byte Spill
    movaps    %xmm7, -16(%rsp)        # 16-byte Spill
    movaps    %xmm6, -32(%rsp)        # 16-byte Spill
    movaps    %xmm5, -48(%rsp)        # 16-byte Spill
    movaps    %xmm4, -64(%rsp)        # 16-byte Spill
    movaps    %xmm3, -80(%rsp)        # 16-byte Spill
    movaps    %xmm2, -96(%rsp)        # 16-byte Spill
    movaps    %xmm1, -112(%rsp)       # 16-byte Spill
    movaps    %xmm0, -128(%rsp)       # 16-byte Spill
    .cfi_offset %xmm0, -608
    .cfi_offset %xmm1, -592
    .cfi_offset %xmm2, -576
    .cfi_offset %xmm3, -560
    .cfi_offset %xmm4, -544
    .cfi_offset %xmm5, -528
    .cfi_offset %xmm6, -512
    .cfi_offset %xmm7, -496
    .cfi_offset %xmm8, -480
    .cfi_offset %xmm9, -464
    .cfi_offset %xmm10, -448
    .cfi_offset %xmm11, -432
    .cfi_offset %xmm12, -416
    .cfi_offset %xmm13, -400
    .cfi_offset %xmm14, -384
    .cfi_offset %xmm15, -368
    .cfi_offset %xmm16, -352
    .cfi_offset %xmm17, -336
    .cfi_offset %xmm18, -320
    .cfi_offset %xmm19, -304
    .cfi_offset %xmm20, -288
    .cfi_offset %xmm21, -272
    .cfi_offset %xmm22, -256
    .cfi_offset %xmm23, -240
    .cfi_offset %xmm24, -224
    .cfi_offset %xmm25, -208
    .cfi_offset %xmm26, -192
    .cfi_offset %xmm27, -176
    .cfi_offset %xmm28, -160
    .cfi_offset %xmm29, -144
    .cfi_offset %xmm30, -128
    .cfi_offset %xmm31, -112
    movaps    -128(%rsp), %xmm0       # 16-byte Reload
    movaps    -112(%rsp), %xmm1       # 16-byte Reload
    movaps    -96(%rsp), %xmm2        # 16-byte Reload
    movaps    -80(%rsp), %xmm3        # 16-byte Reload
    movaps    -64(%rsp), %xmm4        # 16-byte Reload
    movaps    -48(%rsp), %xmm5        # 16-byte Reload
    movaps    -32(%rsp), %xmm6        # 16-byte Reload
    movaps    -16(%rsp), %xmm7        # 16-byte Reload
    movaps    (%rsp), %xmm8           # 16-byte Reload
    movaps    16(%rsp), %xmm9         # 16-byte Reload
    movaps    32(%rsp), %xmm10        # 16-byte Reload
    movaps    48(%rsp), %xmm11        # 16-byte Reload
    movaps    64(%rsp), %xmm12        # 16-byte Reload
    movaps    80(%rsp), %xmm13        # 16-byte Reload
    movaps    96(%rsp), %xmm14        # 16-byte Reload
    movaps    112(%rsp), %xmm15       # 16-byte Reload
    movaps    128(%rsp), %xmm16       # 16-byte Reload
    movaps    144(%rsp), %xmm17       # 16-byte Reload
    movaps    160(%rsp), %xmm18       # 16-byte Reload
    movaps    176(%rsp), %xmm19       # 16-byte Reload
    movaps    192(%rsp), %xmm20       # 16-byte Reload
    movaps    208(%rsp), %xmm21       # 16-byte Reload
    movaps    224(%rsp), %xmm22       # 16-byte Reload
    movaps    240(%rsp), %xmm23       # 16-byte Reload
    movaps    256(%rsp), %xmm24       # 16-byte Reload
    movaps    272(%rsp), %xmm25       # 16-byte Reload
    movaps    288(%rsp), %xmm26       # 16-byte Reload
    movaps    304(%rsp), %xmm27       # 16-byte Reload
    movaps    320(%rsp), %xmm28       # 16-byte Reload
    movaps    336(%rsp), %xmm29       # 16-byte Reload
    movaps    352(%rsp), %xmm30       # 16-byte Reload
    movaps    368(%rsp), %xmm31       # 16-byte Reload
[hjl@gnu-6 interrupt-8]$ 

Nehalem doesn't have xmm16-xmm31 and movaps can't be use with xmm16-xmm31.</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>