Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / CSKY / branch-relax-801.s
blob2e93c74595134c0cd0a6e33efdb060b600246953
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
28 addu16 r1, r2, r3
29 .L1:
30 jbf .L2
31 addu16 r3, r2, r1
33 .rept 600
34 nop
35 .endr
38 addu16 r1, r2, r3
39 .L2:
40 jbt .L1
41 jbr .L1
42 addu16 r3, r2, r1
43 jbr .L3
44 .L3: