aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Sema/inline-asm-validate-mips.c
blob: 7da248fe417b5ca59d6cd5a348494558a2713ea0 (plain)
1
2
3
4
5
6
7
8
9
// RUN: %clang_cc1 -triple mips64 -fsyntax-only -verify %s
// RUN: %clang_cc1 -triple mips64 -target-feature +soft-float -fsyntax-only -verify=softfloat %s

// expected-no-diagnostics

void test_f(float p) {
  float result = p;
  __asm__("" :: "f"(result)); // softfloat-error{{invalid input constraint 'f' in asm}}
}