diff options
author | Dylan McKay <dylanmckay34@gmail.com> | 2016-12-10 11:49:07 +0000 |
---|---|---|
committer | Dylan McKay <dylanmckay34@gmail.com> | 2016-12-10 11:49:07 +0000 |
commit | d8a603c23b1db5337ad3ae41a6f646ceab01c572 (patch) | |
tree | a59d514772b370754731f90145102479260ea28c /llvm/test/CodeGen/AVR/inline-asm/inline-asm2.ll | |
parent | a7e05487225bbcbcb0ae6a706f96806b621eb143 (diff) | |
download | bcm5719-llvm-d8a603c23b1db5337ad3ae41a6f646ceab01c572.tar.gz bcm5719-llvm-d8a603c23b1db5337ad3ae41a6f646ceab01c572.zip |
[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
Diffstat (limited to 'llvm/test/CodeGen/AVR/inline-asm/inline-asm2.ll')
-rw-r--r-- | llvm/test/CodeGen/AVR/inline-asm/inline-asm2.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AVR/inline-asm/inline-asm2.ll b/llvm/test/CodeGen/AVR/inline-asm/inline-asm2.ll new file mode 100644 index 00000000000..083390999b8 --- /dev/null +++ b/llvm/test/CodeGen/AVR/inline-asm/inline-asm2.ll @@ -0,0 +1,8 @@ +; 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 +} + |