2 Modified 20060110-?.c from the execute part of the gcc torture suite.
3 Volatile input to trigger some peephole rules for STM8
12 #if !defined(__SDCC_pic14) && !defined(__SDCC_pic16) && !defined(__SDCC_pdk14) // Lack of memory
14 f (volatile long long a
, volatile long long b
)
16 return ((a
+ b
) << 32) >> 32;
19 long long a
= 0x1234567876543210LL
;
20 long long b
= 0x2345678765432101LL
;
21 long long c
= ((0x1234567876543210LL
+ 0x2345678765432101LL
) << 32) >> 32;
25 testTortureExecute (void)
27 #if !defined(__SDCC_pic14) && !defined(__SDCC_pic16) && !defined(__SDCC_pdk14) // Lack of memory
28 ASSERT (f (a
, b
) == c
);