Files
clang-p2996/llvm/test/CodeGen/AVR/inline-asm/inline-asm2.ll
Dylan McKay d8a603c23b [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.

llvm-svn: 289325
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
}