• 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  swap r31
8  swap r25
9  swap r5
10  swap r0
11
12; CHECK: swap r31                ; encoding: [0xf2,0x95]
13; CHECK: swap r25                ; encoding: [0x92,0x95]
14; CHECK: swap r5                 ; encoding: [0x52,0x94]
15; CHECK: swap r0                 ; encoding: [0x02,0x94]
16
17; CHECK-INST: swap r31
18; CHECK-INST: swap r25
19; CHECK-INST: swap r5
20; CHECK-INST: swap r0
21