1 // Check that the 3.1 named operand syntax can be used in template functions.
5 static const int info = 99;
10 static const int info = 11;
17 asm ("# foo on %[third] %[second] %[fourth] %[first]"
28 asm ("# bar on %[first] %[second] %[third]"
29 : [first] "=r" (t.value)
30 : [second] "i[first]" (t.value),
31 [third] "i" (t.info));
37 static void frob (TYPE t)
39 asm ("# frob on %[arg]" :: [arg] "i" (t.info));
54 // { dg-final { scan-assembler "foo on" } }
55 // { dg-final { scan-assembler "bar on" } }
56 // { dg-final { scan-assembler "frob on" } }