66 lines · plain
1# RUN: llc -mtriple=riscv32 -x mir -run-pass=machine-outliner -simplify-mir -verify-machineinstrs < %s \2# RUN: | FileCheck -check-prefix=RV32I-MO %s3# RUN: llc -mtriple=riscv64 -x mir -run-pass=machine-outliner -simplify-mir -verify-machineinstrs < %s \4# RUN: | FileCheck -check-prefix=RV64I-MO %s5 6--- |7 ; Cannot outline instructions with jump-table index operands8 define i32 @foo(i32 %a, i32 %b) #0 { ret i32 0 }9 10...11---12name: foo13tracksRegLiveness: true14jumpTable:15 kind: block-address16 entries:17 - id: 018 blocks: [ '%bb.0', '%bb.1', '%bb.2', '%bb.3' ]19body: |20 bb.0:21 liveins: $x10, $x1122 ; RV32I-MO-LABEL: name: foo23 ; RV32I-MO: $x5 = PseudoCALLReg {{.*}} @OUTLINED_FUNCTION_024 ; RV32I-MO: $x12 = LUI target-flags(riscv-hi) %jump-table.025 ; RV32I-MO: $x12 = ADDI $x12, target-flags(riscv-lo) %jump-table.026 ;27 ; RV64I-MO-LABEL: name: foo28 ; RV64I-MO: $x5 = PseudoCALLReg {{.*}} @OUTLINED_FUNCTION_029 ; RV64I-MO: $x12 = LUI target-flags(riscv-hi) %jump-table.030 ; RV64I-MO: $x12 = ADDI $x12, target-flags(riscv-lo) %jump-table.031 32 $x11 = ORI $x11, 102333 $x12 = ADDI $x10, 1734 $x11 = AND $x12, $x1135 $x10 = SUB $x10, $x1136 $x12 = LUI target-flags(riscv-hi) %jump-table.037 $x12 = ADDI $x12, target-flags(riscv-lo) %jump-table.038 PseudoBR %bb.339 40 bb.1:41 liveins: $x10, $x1142 43 $x11 = ORI $x11, 102344 $x12 = ADDI $x10, 1745 $x11 = AND $x12, $x1146 $x10 = SUB $x10, $x1147 $x12 = LUI target-flags(riscv-hi) %jump-table.048 $x12 = ADDI $x12, target-flags(riscv-lo) %jump-table.049 PseudoBR %bb.350 51 bb.2:52 liveins: $x10, $x1153 54 $x11 = ORI $x11, 102355 $x12 = ADDI $x10, 1756 $x11 = AND $x12, $x1157 $x10 = SUB $x10, $x1158 $x12 = LUI target-flags(riscv-hi) %jump-table.059 $x12 = ADDI $x12, target-flags(riscv-lo) %jump-table.060 PseudoBR %bb.361 62 bb.3:63 PseudoRET64 65...66