• 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  andi r16, 255
8  andi r29, 190
9  andi r22, 172
10  andi r27, 92
11
12  andi r20, BAR
13
14; CHECK: andi r16, 255                 ; encoding: [0x0f,0x7f]
15; CHECK: andi r29, 190                 ; encoding: [0xde,0x7b]
16; CHECK: andi r22, 172                 ; encoding: [0x6c,0x7a]
17; CHECK: andi r27, 92                  ; encoding: [0xbc,0x75]
18
19; CHECK: andi r20, BAR                 ; encoding: [0x40'A',0x70]
20; CHECK:                               ;   fixup A - offset: 0, value: BAR, kind: fixup_ldi
21
22; CHECK-INST: andi r16, 255
23; CHECK-INST: andi r29, 190
24; CHECK-INST: andi r22, 172
25; CHECK-INST: andi r27, 92
26
27; CHECK-INST: andi r20, 0
28