aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr70703.c
blob: d0950aec19d24021322bdc5e6b131041ce2a84ed (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do compile } */
/* { dg-options "-O2 -fomit-frame-pointer" } */
/* { dg-require-effective-target ia32 } */
/* { dg-final { scan-assembler "movl\t\\\$6700417, %eax" } } */

unsigned ud_x_641_mul(unsigned x) {
    /* optimized version of x / 641 */
    return ((unsigned long long)x * 0x663d81) >> 32;
}