• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llvm-mc -triple avr -mattr=sram -show-encoding < %s | FileCheck %s
2; RUN: llvm-mc -filetype=obj -triple avr -mattr=sram < %s | llvm-objdump -d --mattr=sram - | FileCheck -check-prefix=CHECK-INST %s
3
4
5foo:
6
7  pop r31
8  pop r25
9  pop r5
10  pop r0
11
12; CHECK: pop r31                ; encoding: [0xff,0x91]
13; CHECK: pop r25                ; encoding: [0x9f,0x91]
14; CHECK: pop r5                 ; encoding: [0x5f,0x90]
15; CHECK: pop r0                 ; encoding: [0x0f,0x90]
16
17; CHECK-INST: pop r31
18; CHECK-INST: pop r25
19; CHECK-INST: pop r5
20; CHECK-INST: pop r0
21