arm-asm.c 334 B

123456789101112
  1. // RUN: %clang_cc1 %s -triple armv7-apple-darwin -verify -fsyntax-only
  2. void f (void) {
  3. int Val;
  4. asm volatile ("lw (r1), %0[val]": "=&b"(Val)); // expected-error {{invalid output constraint '=&b' in asm}}
  5. return;
  6. }
  7. void test_64bit_r(void) {
  8. long long foo = 0, bar = 0;
  9. asm volatile("INST %0, %1" : "=r"(foo) : "r"(bar));
  10. }