• 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  cp r13, r12
8  cp r20, r0
9  cp r10, r31
10  cp r0,  r0
11
12; CHECK: cp r13, r12                  ; encoding: [0xdc,0x14]
13; CHECK: cp r20, r0                   ; encoding: [0x40,0x15]
14; CHECK: cp r10, r31                  ; encoding: [0xaf,0x16]
15; CHECK: cp r0,  r0                   ; encoding: [0x00,0x14]
16
17; CHECK-INST: cp r13, r12
18; CHECK-INST: cp r20, r0
19; CHECK-INST: cp r10, r31
20; CHECK-INST: cp r0,  r0
21