aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/copysign-bsl.c
blob: 0ec7109c7387794d198f2a5b1a6fb5c6e98d73c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-O2" } */

/* Test that we can generate DImode BSL when we are using
   copysign.  */

double
foo (double a, double b)
{
  return __builtin_copysign (a, b);
}

/* { dg-final { scan-assembler "b\(sl|it|if\)\tv\[0-9\]" } } */