reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
// RUN: not %clang -target powerpc-unknown-linux -O2 -fPIC -m32 -msoft-float %s -o %t.o 2>&1 | FileCheck --check-prefix=CHECK-ERRMSG %s
int foo ()
{
  double x,y;
  int a;
  __asm__ ("fctiw %0,%1" : "=f"(x) : "f"(y));
  // CHECK-ERRMSG:      error: invalid output constraint '=f' in asm
  // CHECK-ERRMSG-NEXT:  __asm__ ("fctiw %0,%1" : "=f"(x) : "f"(y));
  __asm__ ("fctiw %0,%1" : "=d"(x) : "d"(y));
  // CHECK-ERRMSG: error: invalid output constraint '=d' in asm
  // CHECK-ERRMSG-NEXT: __asm__ ("fctiw %0,%1" : "=d"(x) : "d"(y));
  __asm__ ("vec_dss %0" : "=v"(a));
  // CHECK-ERRMSG: error: invalid output constraint '=v' in asm
  // CHECK-ERRMSG-NEXT: __asm__ ("vec_dss %0" : "=v"(a));
}