aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/sh/pr63260.c
blob: ceff756cd89622010fd678f188ac50ffa9a35f14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* Check that there is no FPSCR precision mode change generated for fneg and
   fabs instructions.  */
/* { dg-do compile }  */
/* { dg-options "-O1" } */
/* { dg-final { scan-assembler-not "fpscr|fpchg" } } */

float
test_0 (float x)
{
  return -x;
}

double
test_1 (double x)
{
  return -x;
}

float
test_2 (float x)
{
  return __builtin_fabs (x);
}

double
test_3 (double x)
{
  return __builtin_fabs (x);
}