PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr34971.c
blob3299aee22c994082f5b162bf0a31c540cf18ba3b
1 struct foo
3 unsigned long long b:40;
4 } x;
6 extern void abort (void);
8 void test1(unsigned long long res)
10 /* Build a rotate expression on a 40 bit argument. */
11 if ((x.b<<8) + (x.b>>32) != res)
12 abort ();
15 int main()
17 x.b = 0x0100000001;
18 test1(0x0000000101);
19 x.b = 0x0100000000;
20 test1(0x0000000001);
21 return 0;