• 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  lsl r31
8  lsl r25
9  lsl r5
10  lsl r0
11
12; CHECK: lsl r31                ; encoding: [0xff,0x0f]
13; CHECK: lsl r25                ; encoding: [0x99,0x0f]
14; CHECK: lsl r5                 ; encoding: [0x55,0x0c]
15; CHECK: lsl r0                 ; encoding: [0x00,0x0c]
16
17; CHECK-INST: lsl r31
18; CHECK-INST: lsl r25
19; CHECK-INST: lsl r5
20; CHECK-INST: lsl r0
21