30 lines · plain
1; RUN: not llc < %s -mtriple=avr -no-integrated-as 2>&1 | FileCheck %s2; RUN: not llc < %s -mtriple=avr -mcpu=avr6 -filetype=obj 2>&1 \3; RUN: FileCheck %s --check-prefix=AVR64 5define void @foo(i16 %a) {6 ; CHECK: error: invalid operand in inline asm: 'jl ${0:l}'7 %i.addr = alloca i32, align 48 call void asm sideeffect "jl ${0:l}", "*m"(ptr elementtype(i32) %i.addr)9 10 ret void11}12 13define void @foo1() {14 ; CHECK: error: invalid operand in inline asm: ';; ${0:C}'15 call i16 asm sideeffect ";; ${0:C}", "=d"()16 ret void17}18 19define void @foo2() {20 ; AVR6: error: expected either Y or Z register21 call void asm sideeffect "ldd r24, X+2", ""()22 ret void23}24 25define void @foo3() {26 ; AVR6: error: value out of range for constraint 'I'27 call void asm sideeffect "out $0, r20", "I"(i16 64)28 ret void29}30