[LLVM][IR] Use splat syntax when printing ConstantExpr based splats. (#116856)
[llvm-project.git] / clang / test / CodeGen / avr / avr-unsupported-inline-asm-constraints.c
blob29f0b69285fa88d9b0d1ea5435e60a1fca4c209c
1 // RUN: %clang_cc1 -triple avr-unknown-unknown -verify %s
3 const unsigned char val = 0;
5 int 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'}}