OSDN Git Service

2004-05-20 H.J. Lu <hongjiu.lu@intel.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / i386-mul.c
1 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
2 /* { dg-options "-O2 -march=k8" } */
3 /* { dg-final { scan-assembler "and\[^\\n\]*magic" } } */
4
5 /* Should be done as "andw $32767, magic".  */
6 unsigned short magic;
7 t()
8 {
9         magic%=(unsigned short)0x8000U;
10 }