summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AVR/inline-asm/inline-asm2.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/AVR/inline-asm/inline-asm2.ll')
-rw-r--r--llvm/test/CodeGen/AVR/inline-asm/inline-asm2.ll8
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
+}
+
OpenPOWER on IntegriCloud