aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/pr55512-1.c
blob: de88f60f0de23c62d27cb23dd021509a77423b39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-O2" } */

int
foo (int x)
{
  asm goto ("" : : "r" (x), "r" (x + 1), "r" (x + 2), "r" (x + 3), /* { dg-error "operand has impossible constraints" } */
	    "r" (x + 4), "r" (x + 5), "r" (x + 6), "r" (x + 7),
	    "r" (x + 8), "r" (x + 9), "r" (x + 10), "r" (x + 11),
	    "r" (x + 12), "r" (x + 13), "r" (x + 14), "r" (x + 15) : : lab);
  __builtin_unreachable ();
 lab:
  return 0;
}