blob: 72069fe2cf813575f067aa5fed0a57b65429dab6 [file] [log] [blame]
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2 -march=k8" } */
/* { dg-final { scan-assembler "and\[^\\n\]*magic" } } */
/* Should be done as "andw $32767, magic". */
static unsigned short magic;
void t(void)
{
magic%=(unsigned short)0x8000U;
}