Open kraj opened 5 years ago
I see a three issues here:
I think the error is about int input with float output.
My inline-asm-fu is very rusty, but that sounds to me like a valid use of vcvt.
This is the reduced case: a() { int b; float c; asm("" : "=w"(c) : "0"(b)); }
$ clang -target thumbv7ve-yoe-linux-musleabi -c vcvt_fixed_float_VFP-b24785.c vcvt_fixed_float_VFP-b24785.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] a() { ^ vcvt_fixed_float_VFP-b24785.c:5:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ fatal error: error in backend: Unsupported asm: input constraint with a matching output constraint of incompatible type!
I'm getting:
fatal error: error in backend: Unsupported asm: input constraint with a matching output constraint of incompatible type!
Is that what you see, too?
Extended Description
Attached testcase and script to run the compiler