1 # RUN: llvm-mc -filetype=obj -triple=csky < %s \
2 # RUN: | llvm-objdump --mattr=+e1 --no-show-raw-insn -M no-aliases -d -r - \
3 # RUN: | FileCheck -check-prefixes=CHECK-OBJ-CK801 %s
4 # RUN: llvm-mc -filetype=obj -triple=csky -mcpu=ck802 < %s \
5 # RUN: | llvm-objdump --mattr=+e2 --no-show-raw-insn -M no-aliases -d -r - \
6 # RUN: | FileCheck -check-prefixes=CHECK-OBJ-CK802 %s
8 # CHECK-OBJ-CK801: 0: addu16 r1, r2, r3
9 # CHECK-OBJ-CK801-NEXT: 2: bt16 0x8
10 # CHECK-OBJ-CK801-NEXT: 4: br32 0x4bc
11 # CHECK-OBJ-CK801-NEXT: 8: addu16 r3, r2, r1
12 # CHECK-OBJ-CK801: 4ba: addu16 r1, r2, r3
13 # CHECK-OBJ-CK801-NEXT: 4bc: bf16 0x4c2
14 # CHECK-OBJ-CK801-NEXT: 4be: br32 0x2
15 # CHECK-OBJ-CK801-NEXT: 4c2: br32 0x2
16 # CHECK-OBJ-CK801-NEXT: 4c6: addu16 r3, r2, r1
17 # CHECK-OBJ-CK801-NEXT: 4c8: br16 0x4ca
19 # CHECK-OBJ-CK802: 0: addu16 r1, r2, r3
20 # CHECK-OBJ-CK802-NEXT: 2: bf32 0x96a
21 # CHECK-OBJ-CK802-NEXT: 6: addu16 r3, r2, r1
22 # CHECK-OBJ-CK802: 968: addu16 r1, r2, r3
23 # CHECK-OBJ-CK802-NEXT: 96a: bt32 0x2
24 # CHECK-OBJ-CK802-NEXT: 96e: br32 0x2
25 # CHECK-OBJ-CK802-NEXT: 972: addu16 r3, r2, r1
26 # CHECK-OBJ-CK802-NEXT: 974: br16 0x976