summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/AVR/inst-lsr.s
diff options
context:
space:
mode:
authorDylan McKay <dylanmckay34@gmail.com>2016-11-09 23:46:25 +0000
committerDylan McKay <dylanmckay34@gmail.com>2016-11-09 23:46:25 +0000
commit3ffc4495972eeef9dd6050b16801e147e42b87f6 (patch)
tree91a2b07661a21d60be3b7ba4937ac1af480c9937 /llvm/test/MC/AVR/inst-lsr.s
parent1bdaf3e30c222000eb18be744dc73c13f75f435a (diff)
downloadbcm5719-llvm-3ffc4495972eeef9dd6050b16801e147e42b87f6.tar.gz
bcm5719-llvm-3ffc4495972eeef9dd6050b16801e147e42b87f6.zip
[AVR] Add all of the machine code test suite
Summary: This adds all of the AVR machine code tests. Reviewers: arsenm, kparzysz Subscribers: wdng, japaric Differential Revision: https://reviews.llvm.org/D26387 llvm-svn: 286417
Diffstat (limited to 'llvm/test/MC/AVR/inst-lsr.s')
-rw-r--r--llvm/test/MC/AVR/inst-lsr.s14
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/MC/AVR/inst-lsr.s b/llvm/test/MC/AVR/inst-lsr.s
new file mode 100644
index 00000000000..3145eb80ee4
--- /dev/null
+++ b/llvm/test/MC/AVR/inst-lsr.s
@@ -0,0 +1,14 @@
+; RUN: llvm-mc -triple avr -show-encoding < %s | FileCheck %s
+
+
+foo:
+
+ lsr r31
+ lsr r25
+ lsr r5
+ lsr r0
+
+; CHECK: lsr r31 ; encoding: [0xf6,0x95]
+; CHECK: lsr r25 ; encoding: [0x96,0x95]
+; CHECK: lsr r5 ; encoding: [0x56,0x94]
+; CHECK: lsr r0 ; encoding: [0x06,0x94]
OpenPOWER on IntegriCloud