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