This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug other/67630] New: ymm and zmm register aren't preserved in interrupt handler


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]$


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]