aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/pr84828.C
blob: 1d36d843d2f5422e8abf5d060d8ffba7b133b3c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR target/84828
// { dg-do compile { target i?86-*-* x86_64-*-* } }
// { dg-options "-Og -mno-sse2" }

void
foo (float b, double c)
{
  for (int e = 0; e < 2; e++)
    {
      asm volatile ("" : "+f" (c));	// { dg-error "must specify a single register" }
      asm ("" : "+rm" (c = b));
    }
}