• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llvm-mc -triple avr -show-encoding < %s | FileCheck %s
2; RUN: llvm-mc -filetype=obj -triple avr < %s | llvm-objdump -d - | FileCheck -check-prefix=CHECK-INST %s
3
4
5foo:
6
7  lsr r31
8  lsr r25
9  lsr r5
10  lsr r0
11
12; CHECK: lsr r31                ; encoding: [0xf6,0x95]
13; CHECK: lsr r25                ; encoding: [0x96,0x95]
14; CHECK: lsr r5                 ; encoding: [0x56,0x94]
15; CHECK: lsr r0                 ; encoding: [0x06,0x94]
16
17; CHECK-INST: lsr r31
18; CHECK-INST: lsr r25
19; CHECK-INST: lsr r5
20; CHECK-INST: lsr r0
21