1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=riscv32 -run-pass=instruction-select -simplify-mir \
3 # RUN: -verify-machineinstrs %s -o - | FileCheck %s
8 tracksRegLiveness: true
13 ; CHECK-LABEL: name: add_i32
14 ; CHECK: liveins: $x10, $x11
16 ; CHECK-NEXT: [[COPY:%[0-9]+]]:gpr = COPY $x10
17 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:gpr = COPY $x11
18 ; CHECK-NEXT: [[ADD:%[0-9]+]]:gpr = ADD [[COPY]], [[COPY1]]
19 ; CHECK-NEXT: $x10 = COPY [[ADD]]
20 ; CHECK-NEXT: PseudoRET implicit $x10
21 %0:gprb(p0) = COPY $x10
22 %1:gprb(s32) = COPY $x11
23 %2:gprb(p0) = G_PTR_ADD %0, %1
25 PseudoRET implicit $x10
32 tracksRegLiveness: true
37 ; CHECK-LABEL: name: addi_i32
38 ; CHECK: liveins: $x10, $x11
40 ; CHECK-NEXT: [[COPY:%[0-9]+]]:gpr = COPY $x10
41 ; CHECK-NEXT: [[ADDI:%[0-9]+]]:gpr = ADDI [[COPY]], 20
42 ; CHECK-NEXT: $x10 = COPY [[ADDI]]
43 ; CHECK-NEXT: PseudoRET implicit $x10
44 %0:gprb(p0) = COPY $x10
45 %1:gprb(s32) = G_CONSTANT i32 20
46 %2:gprb(p0) = G_PTR_ADD %0, %1
48 PseudoRET implicit $x10