aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/fpcast-nop.c
blob: c2e7ba87fabac40d05e24e8dbf049ed342afe7e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
static  float foof( float a) { return ( float) a; }
static double food(double a) { return (double) a; }
static long double fool(long double a) { return (long double) a; }

/*
 * check-name: fpcast-nop
 * check-description:
 *	Verify that unneeded casts between same-type
 *	floats are also optimized away.
 *
 * check-command: test-linearize $file
 * check-output-ignore
 *
 * check-output-excludes: fpcast\\.
 */