view gcc/testsuite/gcc.target/i386/pr94914.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 2b5abeee2509
children
line wrap: on
line source

/* PR tree-optimization/94914 */
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-final { scan-assembler "\tseto\t" } } */
/* { dg-final { scan-assembler "\tsetno\t" } } */

int
foo (unsigned int x, unsigned int y)
{
  return (((unsigned long long)x * y) >> 32) != 0;
}

int
bar (unsigned int x, unsigned int y)
{
  return (((unsigned long long)x * y) >> 32) == 0;
}