i386-mul.c   [plain text]


/* { 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".  */
unsigned short magic;
t()
{
	magic%=(unsigned short)0x8000U;
}