* gcc.dg/i386-mul.c: New test.

From-SVN: r63297
This commit is contained in:
Jan Hubicka 2003-02-22 20:14:59 +01:00 committed by Jan Hubicka
parent 90b8be7350
commit 48e082b900
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Sat Feb 22 20:14:12 CET 2003 Jan Hubicka <jh@suse.cz>
* gcc.dg/i386-mul.c: New test.
2003-02-21 Roger Sayle <roger@eyesopen.com>
* gcc.dg/builtins-5.c: New test case.

View File

@ -0,0 +1,10 @@
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2 -march=k8" } */
/* { dg-final { scan-assembler "and.*magic" } } */
/* Should be done as "andw $32767, magic". */
unsigned short magic;
t()
{
magic%=(unsigned short)0x8000U;
}