Files
clang-p2996/llvm/test/CodeGen/AVR/inline-asm/inline-asm-invalid.ll
Nikita Popov f430c1eb64 [Tests] Add elementtype attribute to indirect inline asm operands (NFC)
This updates LLVM tests for D116531 by adding elementtype attributes
to operands that correspond to indirect asm constraints.
2022-01-06 14:23:51 +01:00

11 lines
281 B
LLVM

; RUN: not llc < %s -march=avr -no-integrated-as 2>&1 | FileCheck %s
define void @foo(i16 %a) {
; CHECK: error: invalid operand in inline asm: 'jl ${0:l}'
%i.addr = alloca i32, align 4
call void asm sideeffect "jl ${0:l}", "*m"(i32* elementtype(i32) %i.addr)
ret void
}