brintos

brintos / llvm-project-archived public Read only

0
0
Text · 546 B · 52b8d1c Raw
11 lines · c
1// RUN: %clang_cc1 -triple avr-unknown-unknown -verify %s2 3const unsigned char val = 0;4 5int foo(void) {6  __asm__ volatile("foo %0, 1" : : "fo" (val)); // expected-error {{invalid input constraint 'fo' in asm}}7  __asm__ volatile("foo %0, 1" : : "Nd" (val)); // expected-error {{invalid input constraint 'Nd' in asm}}8  __asm__ volatile("subi r30, %0" : : "G" (1)); // expected-error {{value '1' out of range for constraint 'G'}}9  __asm__ volatile("out %0, r20" : : "I" (65)); // expected-error {{value '65' out of range for constraint 'I'}}10}11