• 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  dec r26
8  dec r3
9  dec r24
10  dec r20
11
12; CHECK: dec r26                  ; encoding: [0xaa,0x95]
13; CHECK: dec r3                   ; encoding: [0x3a,0x94]
14; CHECK: dec r24                  ; encoding: [0x8a,0x95]
15; CHECK: dec r20                  ; encoding: [0x4a,0x95]
16
17; CHECK-INST: dec r26
18; CHECK-INST: dec r3
19; CHECK-INST: dec r24
20; CHECK-INST: dec r20
21