1 // RUN: %clang_cc1 %s
2 
3 int a, b, c, d, e, f, g, h, i, j, k, l;
4 
5 void
f1(void)6 f1 (void)
7 {
8   __asm__ volatile (""
9             : [a] "+r" (a), [b] "+r" (b), [c] "+r" (c), [d] "+r" (d),
10               [e] "+r" (e), [f] "+r" (f), [g] "+r" (g), [h] "+r" (h),
11               [i] "+r" (i), [j] "+r" (j), [k] "+r" (k), [l] "+r" (l));
12 }
13 
14 void
f2(void)15 f2 (void)
16 {
17   __asm__ volatile (""
18             : [a] "+r,m" (a), [b] "+r,m" (b), [c] "+r,m" (c), [d] "+r,m" (d),
19               [e] "+r,m" (e), [f] "+r,m" (f), [g] "+r,m" (g), [h] "+r,m" (h),
20               [i] "+r,m" (i), [j] "+r,m" (j), [k] "+r,m" (k), [l] "+r,m" (l));
21 }
22 
23 void
f3(void)24 f3 (void)
25 {
26   __asm__ volatile (""
27             : [a] "=r" (a), [b] "=r" (b), [c] "=r" (c), [d] "=r" (d),
28               [e] "=r" (e), [f] "=r" (f), [g] "=r" (g), [h] "=r" (h),
29               [i] "=r" (i), [j] "=r" (j), [k] "=r" (k), [l] "=r" (l)
30             : "[a]" (a), "[b]" (b), "[c]" (c), "[d]" (d),
31               "[e]" (e), "[f]" (f), "[g]" (g), "[h]" (h),
32               "[i]" (i), "[j]" (j), "[k]" (k), "[l]" (l));
33 }
34 
35 void
f4(void)36 f4 (void)
37 {
38   __asm__ volatile (""
39             : [a] "=r,m" (a), [b] "=r,m" (b), [c] "=r,m" (c), [d] "=r,m" (d),
40               [e] "=r,m" (e), [f] "=r,m" (f), [g] "=r,m" (g), [h] "=r,m" (h),
41               [i] "=r,m" (i), [j] "=r,m" (j), [k] "=r,m" (k), [l] "=r,m" (l)
42             : "[a],m" (a), "[b],m" (b), "[c],m" (c), "[d],m" (d),
43               "[e],m" (e), "[f],m" (f), "[g],m" (g), "[h],m" (h),
44               "[i],m" (i), "[j],m" (j), "[k],m" (k), "[l],m" (l));
45 }
46