From 3ffc4495972eeef9dd6050b16801e147e42b87f6 Mon Sep 17 00:00:00 2001 From: Dylan McKay Date: Wed, 9 Nov 2016 23:46:25 +0000 Subject: [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 --- llvm/test/MC/AVR/inst-lsr.s | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 llvm/test/MC/AVR/inst-lsr.s (limited to 'llvm/test/MC/AVR/inst-lsr.s') 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] -- cgit v1.2.3