1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=riscv32 -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s
8 tracksRegLiveness: true
12 ; CHECK-LABEL: name: ptrmask_p0_s32
13 ; CHECK: liveins: $x10, $x11
15 ; CHECK-NEXT: [[COPY:%[0-9]+]]:gpr = COPY $x10
16 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:gpr = COPY $x11
17 ; CHECK-NEXT: [[AND:%[0-9]+]]:gpr = AND [[COPY]], [[COPY1]]
18 ; CHECK-NEXT: $x10 = COPY [[AND]]
19 ; CHECK-NEXT: PseudoRET implicit $x10
20 %0:gprb(p0) = COPY $x10
21 %1:gprb(s32) = COPY $x11
22 %2:gprb(p0) = G_PTRMASK %0(p0), %1(s32)
24 PseudoRET implicit $x10
28 name: ptrmask_p0_const_s32
31 tracksRegLiveness: true
35 ; CHECK-LABEL: name: ptrmask_p0_const_s32
36 ; CHECK: liveins: $x10
38 ; CHECK-NEXT: [[COPY:%[0-9]+]]:gpr = COPY $x10
39 ; CHECK-NEXT: [[ANDI:%[0-9]+]]:gpr = ANDI [[COPY]], 10
40 ; CHECK-NEXT: $x10 = COPY [[ANDI]]
41 ; CHECK-NEXT: PseudoRET implicit $x10
42 %0:gprb(p0) = COPY $x10
43 %1:gprb(s32) = G_CONSTANT i32 10
44 %2:gprb(p0) = G_PTRMASK %0(p0), %1(s32)
46 PseudoRET implicit $x10