[AMDGPU] Removed superfluous predicate. NFC.
[llvm-project.git] / clang / test / Driver / ppc-inlineasm-sf.c
blob85ce40fbba2b6e10ce6544d138e0976c68dc7f5a
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
2 int foo ()
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));