Debian Codegraph @

clang/test/Sema/inline-asm-validate-mips.c

raw
1 // RUN: %clang_cc1 -triple mips64 -fsyntax-only -verify %s
2 // RUN: %clang_cc1 -triple mips64 -target-feature +soft-float -fsyntax-only -verify=softfloat %s
3
4 // expected-no-diagnostics
5
6 void test_f(float p) {
7 float result = p;
8 __asm__("" :: "f"(result)); // softfloat-error{{invalid input constraint 'f' in asm}}
9 }