2 # RUN: llc -mtriple=riscv64-linux-gnu -x=mir < %s \
3 # RUN: -debug-only=machine-scheduler -start-before=machine-scheduler 2>&1 \
4 # RUN: -mattr=+lui-addi-fusion,+auipc-addi-fusion,+zexth-fusion,+zextw-fusion,+shifted-zextw-fusion,+ld-add-fusion \
7 # CHECK: lui_addi:%bb.0
8 # CHECK: Macro fuse: {{.*}}LUI - ADDI
11 tracksRegLiveness: true
25 # CHECK: Macro fuse: {{.*}}AUIPC - ADDI
28 tracksRegLiveness: true
41 # CHECK: slli_srli_shifted_zext
42 # CHECK: Macro fuse: {{.*}}SLLI - SRLI
44 name: slli_srli_shifted_zext
45 tracksRegLiveness: true
58 # CHECK: slli_srli_zexth
59 # CHECK: Macro fuse: {{.*}}SLLI - SRLI
62 tracksRegLiveness: true
75 # CHECK: slli_srli_zextw
76 # CHECK: Macro fuse: {{.*}}SLLI - SRLI
79 tracksRegLiveness: true
92 # CHECK: slli_srli_no_fusion_0
93 # CHECK-NOT: Macro fuse: {{.*}}SLLI - SRLI
95 name: slli_srli_no_fusion_0
96 tracksRegLiveness: true
109 # CHECK: slli_srli_no_fusion_1
110 # CHECK-NOT: Macro fuse: {{.*}}SLLI - SRLI
112 name: slli_srli_no_fusion_1
113 tracksRegLiveness: true
126 # CHECK: slli_srli_no_fusion_2
127 # CHECK-NOT: Macro fuse: {{.*}}SLLI - SRLI
129 name: slli_srli_no_fusion_2
130 tracksRegLiveness: true
143 # CHECK: slli_srli_no_fusion_3
144 # CHECK-NOT: Macro fuse: {{.*}}SLLI - SRLI
146 name: slli_srli_no_fusion_3
147 tracksRegLiveness: true
161 # CHECK: Macro fuse: {{.*}}ADD - LD
164 tracksRegLiveness: true