summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/AVR/inst-rol.s
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/MC/AVR/inst-rol.s')
-rw-r--r--llvm/test/MC/AVR/inst-rol.s14
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/MC/AVR/inst-rol.s b/llvm/test/MC/AVR/inst-rol.s
new file mode 100644
index 00000000000..443b8e86864
--- /dev/null
+++ b/llvm/test/MC/AVR/inst-rol.s
@@ -0,0 +1,14 @@
+; RUN: llvm-mc -triple avr -show-encoding < %s | FileCheck %s
+
+
+foo:
+
+ rol r31
+ rol r25
+ rol r5
+ rol r0
+
+; CHECK: rol r31 ; encoding: [0xff,0x1f]
+; CHECK: rol r25 ; encoding: [0x99,0x1f]
+; CHECK: rol r5 ; encoding: [0x55,0x1c]
+; CHECK: rol r0 ; encoding: [0x00,0x1c]
OpenPOWER on IntegriCloud