view gcc/testsuite/gcc.dg/pr63387.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
line wrap: on
line source

/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-optimized" } */
/* { dg-skip-if "using short-double" { avr-*-* } } */

int f(double aaa, double bbb){
  int xa = __builtin_isunordered(aaa, aaa);
  int xb = __builtin_isunordered(bbb, bbb);
  return xa | xb;
}

int g(double aaa, double bbb){
  int xa = __builtin_isunordered(aaa, bbb);
  int xb = __builtin_isunordered(bbb, bbb);
  return xa | xb;
}

int h(double ccc, float ddd){
  int xc = __builtin_isunordered(ccc, ccc);
  int xd = __builtin_isunordered(ddd, ddd);
  return xc | xd;
}

/* { dg-final { scan-tree-dump-not "aaa\[^\n\r\]* unord aaa" "optimized" } } */
/* { dg-final { scan-tree-dump-not "bbb\[^\n\r\]* unord bbb" "optimized" } } */
/* { dg-final { scan-tree-dump-times "aaa\[^\n\r\]* unord bbb" 2 "optimized" } } */
/* { dg-final { scan-tree-dump-not "ccc\[^\n\r\]* unord ddd" "optimized" } } */