summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/interrupt-mmx-err-1.c
blob: cd1367b54a4127ccac0849970fa8daa9fb30546d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-O2 -mgeneral-regs-only -mmmx -mno-cld -mno-iamcu" } */

typedef unsigned int uword_t __attribute__ ((mode (__word__)));

void
__attribute__((interrupt))
fn1 (void *frame)
{ /* { dg-message "MMX/3Dnow instructions aren't allowed in interrupt service routine" } */
}

void
__attribute__((interrupt))
fn2 (void *frame, uword_t error)
{ /* { dg-message "MMX/3Dnow instructions aren't allowed in exception service routine" } */
}