1 // RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
3 /* These are random tests that I used when working on the GCC frontend
6 // test floating point comparison!
7 int floatcomptest(double *X, double *Y, float *x, float *y) {
8 return *X < *Y || *x < *y;
11 extern void *malloc(unsigned);
14 void *memset_impl(void *dstpp, int c, unsigned len) {
15 long long int dstp = (long long int) dstpp;
19 ((unsigned char *) dstp)[0] = c;
26 // TEST problem with signed/unsigned versions of the same constants being shared
31 static char *localmalloc(int size) {
36 temp = (char *) malloc(32768);
43 typedef struct { double X; double Y; int Z; } PBVTest;
45 PBVTest testRetStruct(float X, double Y, int Z) {
46 PBVTest T = { X, Y, Z };
49 PBVTest testRetStruct2(void); // external func no inlining
52 double CallRetStruct(float X, double Y, int Z) {
53 PBVTest T = testRetStruct2();