brintos

brintos / llvm-project-archived public Read only

0
0
Text · 695 B · 85ce40f Raw
17 lines · c
1// RUN: not %clang -target powerpc-unknown-linux -O2 -fPIC -m32 -msoft-float %s -o %t.o 2>&1 | FileCheck --check-prefix=CHECK-ERRMSG %s2int 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 asm8  // 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 asm11  // 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 asm14  // CHECK-ERRMSG-NEXT: __asm__ ("vec_dss %0" : "=v"(a));15}16 17