1 # RUN: llc -mtriple=riscv32 -x mir -run-pass=machine-outliner -simplify-mir -verify-machineinstrs < %s \
2 # RUN: | FileCheck -check-prefix=RV32I-MO %s
3 # RUN: llc -mtriple=riscv64 -x mir -run-pass=machine-outliner -simplify-mir -verify-machineinstrs < %s \
4 # RUN: | FileCheck -check-prefix=RV64I-MO %s
7 ; Cannot outline instructions with jump-table index operands
8 define i32 @foo(i32 %a, i32 %b) #0 { ret i32 0 }
13 tracksRegLiveness: true
18 blocks: [ '%bb.0', '%bb.1', '%bb.2', '%bb.3' ]
22 ; RV32I-MO-LABEL: name: foo
23 ; RV32I-MO: $x5 = PseudoCALLReg {{.*}} @OUTLINED_FUNCTION_0
24 ; RV32I-MO: $x12 = LUI target-flags(riscv-hi) %jump-table.0
25 ; RV32I-MO: $x12 = ADDI $x12, target-flags(riscv-lo) %jump-table.0
27 ; RV64I-MO-LABEL: name: foo
28 ; RV64I-MO: $x5 = PseudoCALLReg {{.*}} @OUTLINED_FUNCTION_0
29 ; RV64I-MO: $x12 = LUI target-flags(riscv-hi) %jump-table.0
30 ; RV64I-MO: $x12 = ADDI $x12, target-flags(riscv-lo) %jump-table.0
36 $x12 = LUI target-flags(riscv-hi) %jump-table.0
37 $x12 = ADDI $x12, target-flags(riscv-lo) %jump-table.0
47 $x12 = LUI target-flags(riscv-hi) %jump-table.0
48 $x12 = ADDI $x12, target-flags(riscv-lo) %jump-table.0
58 $x12 = LUI target-flags(riscv-hi) %jump-table.0
59 $x12 = ADDI $x12, target-flags(riscv-lo) %jump-table.0