19 lines · plain
1; RUN: llvm-mc -triple avr -show-encoding < %s | FileCheck %s2; RUN: llvm-mc -filetype=obj -triple avr < %s | llvm-objdump -dr - | FileCheck --check-prefix=CHECK-INST %s3 4foo:5 cpse r2, r136 cpse r9, r07 cpse r5, r318 cpse r3, r39 10; CHECK: cpse r2, r13 ; encoding: [0x2d,0x10]11; CHECK: cpse r9, r0 ; encoding: [0x90,0x10]12; CHECK: cpse r5, r31 ; encoding: [0x5f,0x12]13; CHECK: cpse r3, r3 ; encoding: [0x33,0x10]14 15; CHECK-INST: cpse r2, r1316; CHECK-INST: cpse r9, r017; CHECK-INST: cpse r5, r3118; CHECK-INST: cpse r3, r319