Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.pt / asm1.C
blob8de6b767932c06a7a6131561cde51941eeb2dc2f
1 // { dg-do assemble { target i?86-*-linux* x86_64-*-linux* } }
2 // We'd use ebx with -fpic/-fPIC, so skip.
3 // { dg-skip-if "" { ilp32 } { "-fpic" "-fPIC" } { "" } }
4 // Origin: "Weidmann, Nicholas" <nicholas.weidmann@swx.ch>
6 template<int i> int foo(int v)
8         __asm__ __volatile__("addl %1, %0" : "=a" (v) : "b" (i));
10         return v;
13 int bar(int i)
15         return foo<123>(i);