summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AVR/features/avr25.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/AVR/features/avr25.ll')
-rw-r--r--llvm/test/CodeGen/AVR/features/avr25.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AVR/features/avr25.ll b/llvm/test/CodeGen/AVR/features/avr25.ll
new file mode 100644
index 00000000000..2f61fb40545
--- /dev/null
+++ b/llvm/test/CodeGen/AVR/features/avr25.ll
@@ -0,0 +1,8 @@
+; RUN: llc -mattr=avr25 -O0 < %s -march=avr | FileCheck %s
+
+; On most cores, the 16-bit 'MOVW' instruction can be used
+define i16 @reg_copy16(i16 %a) {
+; CHECK-LABEL: reg_copy16
+; CHECK: movw r18, r24
+ ret i16 %a
+}
OpenPOWER on IntegriCloud