public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/67630] New: ymm and zmm register aren't preserved in interrupt handler
@ 2015-09-18 17:03 hjl.tools at gmail dot com
  2015-09-18 17:29 ` [Bug other/67630] " hjl.tools at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: hjl.tools at gmail dot com @ 2015-09-18 17:03 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67630

            Bug ID: 67630
           Summary: ymm and zmm register aren't preserved in interrupt
                    handler
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
                CC: julia.koval at intel dot com
  Target Milestone: ---

[hjl@gnu-6 interrupt-5]$ make clean
rm -f *.o *.so *.s *.i.* *.x.*
[hjl@gnu-6 interrupt-5]$ cat ymm.i
void
__attribute__((interrupt))
fn1 (void)
{
  asm ("#"
       :
       : 
       : "ymm0");
}
[hjl@gnu-6 interrupt-5]$ make ymm.s
/export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -O2 -mavx -S -o ymm.s ymm.i
[hjl@gnu-6 interrupt-5]$ cat ymm.s
        .file   "ymm.i"
        .section        .text.unlikely,"ax",@progbits
.LCOLDB0:
        .text
.LHOTB0:
        .p2align 4,,15
        .globl  fn1
        .type   fn1, @function
fn1:
.LFB0:
        .cfi_startproc
        subq    $24, %rsp
        .cfi_def_cfa_offset 32
        vmovaps %xmm0, (%rsp)
        .cfi_offset 17, -32
#APP
# 5 "ymm.i" 1
        #
# 0 "" 2
#NO_APP
        vzeroupper
        vmovaps (%rsp), %xmm0
        addq    $24, %rsp
        .cfi_def_cfa_offset 8
        iret
        .cfi_endproc
.LFE0:
        .size   fn1, .-fn1
        .section        .text.unlikely
.LCOLDE0:
        .text
.LHOTE0:
        .ident  "GCC: (GNU) 6.0.0 20150917 (experimental)"
        .section        .note.GNU-stack,"",@progbits
[hjl@gnu-6 interrupt-5]$


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-09-20 10:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-18 17:03 [Bug other/67630] New: ymm and zmm register aren't preserved in interrupt handler hjl.tools at gmail dot com
2015-09-18 17:29 ` [Bug other/67630] " hjl.tools at gmail dot com
2015-09-18 22:52 ` hjl.tools at gmail dot com
2015-09-19 22:35 ` hjl.tools at gmail dot com
2015-09-20 10:36 ` ubizjak at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).