• 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  ror r31
8  ror r25
9  ror r5
10  ror r0
11
12; CHECK: ror r31                ; encoding: [0xf7,0x95]
13; CHECK: ror r25                ; encoding: [0x97,0x95]
14; CHECK: ror r5                 ; encoding: [0x57,0x94]
15; CHECK: ror r0                 ; encoding: [0x07,0x94]
16
17; CHECK-INST: ror r31
18; CHECK-INST: ror r25
19; CHECK-INST: ror r5
20; CHECK-INST: ror r0
21