The following hopefully fixes asm constraints (works for ia64 now, still works on x86_64).
Richard. 2017-04-13 Richard Biener <rguent...@suse.de> PR testsuite/80416 * g++.dg/torture/pr79671.C: Fix asm constraints. Index: gcc/testsuite/g++.dg/torture/pr79671.C =================================================================== --- gcc/testsuite/g++.dg/torture/pr79671.C (revision 246899) +++ gcc/testsuite/g++.dg/torture/pr79671.C (working copy) @@ -13,7 +13,7 @@ int __attribute__((noinline)) foo() new (&x) B (0); y = x; B *q = reinterpret_cast <B *>(&y); - asm volatile ("" : "=r" (q) : "r" (q)); + asm volatile ("" : "=r" (q) : "0" (q)); return q->i; }