llvm/test/CodeGen/AVR/inline-asm/inline-asm2.ll
Dylan McKay 08e478d45a [AVR] Fix and clean up the inline assembly tests
There was a bug where we would hit an assertion if 'Q' was used as a
constraint.

I also removed hardcoded register names to prefer regexes so the tests
don't break when the register allocator changes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289325 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-10 11:49:07 +00:00

9 lines
165 B
LLVM

; RUN: llc < %s -march=avr | FileCheck %s
; CHECK-LABEL: foo
define void @foo(i16 %a) {
call void asm sideeffect "add $0, $0", "Z"(i16 %a) nounwind
ret void
}