1 /* PR target/13058 */
2 /* Origin: Lloyd Parkes <lloyd@must-have-coffee.gen.nz> */
3 /* Reduced testcase by  Falk Hueffner <falk@debian.org> */
4 
5 /* Verify that the register allocator correctly aligns
6    floating-point registers on SPARC64.  */
7 
8 /* { dg-do compile } */
9 /* { dg-options "-O" } */
10 
11 typedef struct { int ThumbnailSize; } ImageInfo_t;
12 
ConvertAnyFormat(void)13 double ConvertAnyFormat(void)
14 {
15   return 0;
16 }
17 
ProcessExifDir(ImageInfo_t * ImageInfoP,int NumDirEntries)18 void ProcessExifDir(ImageInfo_t *ImageInfoP, int NumDirEntries)
19 {
20   unsigned int ThumbnailSize;
21 
22   for (; NumDirEntries;) {
23     Get16u();
24     switch (NumDirEntries) {
25       case 0x0201:
26       case 0x0202:
27         ThumbnailSize = ConvertAnyFormat();
28     }
29   }
30 
31   ImageInfoP->ThumbnailSize = ThumbnailSize;
32 }
33