Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / testsuite / gcc.target / powerpc / tfmode_off.c
1 /* { dg-do assemble } */
2 /* { dg-skip-if "" { powerpc-ibm-aix* } { "*" } { "" } } */
3 /* { dg-options "-O2 -fno-align-functions -mtraceback=no -save-temps" } */
4
5 typedef float TFmode __attribute__ ((mode (TF)));
6
7 void w1 (void *x, TFmode y) { *(TFmode *) (x + 32767) = y; }
8 void w2 (void *x, TFmode y) { *(TFmode *) (x + 32766) = y; }
9 void w3 (void *x, TFmode y) { *(TFmode *) (x + 32765) = y; }
10 void w4 (void *x, TFmode y) { *(TFmode *) (x + 32764) = y; }
11 void w5 (void *x, TFmode y) { *(TFmode *) (x + 32763) = y; }
12 void w6 (void *x, TFmode y) { *(TFmode *) (x + 32762) = y; }
13 void w7 (void *x, TFmode y) { *(TFmode *) (x + 32761) = y; }
14 void w8 (void *x, TFmode y) { *(TFmode *) (x + 32760) = y; }
15 void w9 (void *x, TFmode y) { *(TFmode *) (x + 32759) = y; }
16 void w10 (void *x, TFmode y) { *(TFmode *) (x + 32758) = y; }
17 void w11 (void *x, TFmode y) { *(TFmode *) (x + 32757) = y; }
18 void w12 (void *x, TFmode y) { *(TFmode *) (x + 32756) = y; }
19 void w13 (void *x, TFmode y) { *(TFmode *) (x + 32755) = y; }
20 void w14 (void *x, TFmode y) { *(TFmode *) (x + 32754) = y; }
21 void w15 (void *x, TFmode y) { *(TFmode *) (x + 32753) = y; }
22 void w16 (void *x, TFmode y) { *(TFmode *) (x + 32752) = y; }
23 void w17 (void *x, TFmode y) { *(TFmode *) (x + 32751) = y; }
24 void w18 (void *x, TFmode y) { *(TFmode *) (x + 32750) = y; }
25 void w19 (void *x, TFmode y) { *(TFmode *) (x + 32749) = y; }
26 void w20 (void *x, TFmode y) { *(TFmode *) (x + 32748) = y; }
27
28 TFmode r1 (void *x) { return *(TFmode *) (x + 32767); }
29 TFmode r2 (void *x) { return *(TFmode *) (x + 32766); }
30 TFmode r3 (void *x) { return *(TFmode *) (x + 32765); }
31 TFmode r4 (void *x) { return *(TFmode *) (x + 32764); }
32 TFmode r5 (void *x) { return *(TFmode *) (x + 32763); }
33 TFmode r6 (void *x) { return *(TFmode *) (x + 32762); }
34 TFmode r7 (void *x) { return *(TFmode *) (x + 32761); }
35 TFmode r8 (void *x) { return *(TFmode *) (x + 32760); }
36 TFmode r9 (void *x) { return *(TFmode *) (x + 32759); }
37 TFmode r10 (void *x) { return *(TFmode *) (x + 32758); }
38 TFmode r11 (void *x) { return *(TFmode *) (x + 32757); }
39 TFmode r12 (void *x) { return *(TFmode *) (x + 32756); }
40 TFmode r13 (void *x) { return *(TFmode *) (x + 32755); }
41 TFmode r14 (void *x) { return *(TFmode *) (x + 32754); }
42 TFmode r15 (void *x) { return *(TFmode *) (x + 32753); }
43 TFmode r16 (void *x) { return *(TFmode *) (x + 32752); }
44 TFmode r17 (void *x) { return *(TFmode *) (x + 32751); }
45 TFmode r18 (void *x) { return *(TFmode *) (x + 32750); }
46 TFmode r19 (void *x) { return *(TFmode *) (x + 32749); }
47 TFmode r20 (void *x) { return *(TFmode *) (x + 32748); }
48
49 /* { dg-final { object-size text == 544 } } */
50 /* { dg-final { cleanup-saved-temps "tfmode_off" } } */