[llvm-bugs] [Bug 26409] New: __attribute__ ((interrupt)) uses xmm31 with -march=nehalem
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Feb 1 05:31:01 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=26409
Bug ID: 26409
Summary: __attribute__ ((interrupt)) uses xmm31 with
-march=nehalem
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: hjl.tools at gmail.com
CC: kevin.b.smith at intel.com, llvm-bugs at lists.llvm.org
Classification: Unclassified
hjl at gnu-6 interrupt-8]$ cat x.i
extern void subroutine1(void);
__attribute__ ((interrupt))
void ih(void * frame)
{
subroutine1();
}
[hjl at 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 at gnu-6 interrupt-8]$
Nehalem doesn't have xmm16-xmm31 and movaps can't be use with xmm16-xmm31.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160201/b24b13b4/attachment.html>
More information about the llvm-bugs
mailing list