blob: a523424c325324fb882edfdb873771d33a58ee7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
/* { dg-do compile } */
void ice_mult32 (int x)
{
register long reg __asm ("22");
__asm volatile (" " :: "r" (reg = 0x12345 * x));
}
void ice_mult24 (int x)
{
register __int24 reg __asm ("20");
__asm volatile (" " :: "r" (reg = 0x12345 * x));
}
void ice_sh24 (__int24 x)
{
register __int24 reg __asm ("20");
__asm volatile (" " :: "r" (reg = x << 3));
}
void ice_sh24b (__int24 x)
{
register __int24 reg __asm ("20");
__asm volatile (" " :: "r" (reg = x << 22));
}
void ice_s16s16 (int x)
{
register long reg __asm ("20");
__asm volatile (" " :: "r" (reg = (long) x*x));
}
void ice_u16s16 (int x)
{
register long reg __asm ("20");
__asm volatile (" " :: "r" (reg = (long) x*0x1234u));
}
|