summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/fix-trunc-mem-1.c
blob: dbd4282592c75d5d9eeaa10d00aa178765d44886 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* PR target/14201  */
/* Excercise float -> integer in memory patterns.  */
/* { dg-add-options ieee } */

void f1 (float v,  int *p)			{ *p = v; }
void f2 (float v,  unsigned int*p)		{ *p = v; }
void f3 (float v,  long long *p)		{ *p = v; }
void f4 (float v,  unsigned long long *p)	{ *p = v; }
void f5 (double v, int *p)			{ *p = v; }
void f6 (double v, unsigned int *p)		{ *p = v; }
void f7 (double v, long long *p)		{ *p = v; }
void f8 (double v, unsigned long long *p)	{ *p = v; }