PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr20020-1.c
blob43dc03d4585b1ec90a9d6e1337ba1ec44f9106b7
1 /* Check that 128-bit struct's are represented as TImode values. */
2 /* { dg-do compile { target int128 } } */
3 /* { dg-skip-if "different ABI" { x86_64-*-mingw* } } */
4 /* { dg-options "-O2 -fdump-rtl-expand" } */
6 struct shared_ptr_struct
8 unsigned long long phase:48;
9 unsigned short thread:16;
10 union
12 void *addr;
13 unsigned long long pad;
16 typedef struct shared_ptr_struct sptr_t;
18 sptr_t S;
20 sptr_t
21 sptr_result (void)
23 return S;
25 /* { dg-final { scan-rtl-dump "\\\(set \\\(reg:TI \[0-9\]* \\\[ <retval> \\\]\\\)" "expand" } } */
26 /* { dg-final { scan-rtl-dump "\\\(set \\\(reg/i:TI 0 ax\\\)" "expand" } } */