1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=MIPS32
5 define void @load1_s8_to_zextLoad1_s32(i8* %px) {entry: ret void}
6 define void @load2_s16_to_zextLoad2_s32(i16* %px) {entry: ret void}
7 define void @load1_s8_to_sextLoad1_s32(i8* %px) {entry: ret void}
8 define void @load2_s16_to_sextLoad2_s32(i16* %px) {entry: ret void}
12 name: load1_s8_to_zextLoad1_s32
16 tracksRegLiveness: true
21 ; MIPS32-LABEL: name: load1_s8_to_zextLoad1_s32
22 ; MIPS32: liveins: $a0
23 ; MIPS32: [[COPY:%[0-9]+]]:gpr32 = COPY $a0
24 ; MIPS32: [[LBu:%[0-9]+]]:gpr32 = LBu [[COPY]], 0 :: (load 1 from %ir.px)
25 ; MIPS32: $v0 = COPY [[LBu]]
26 ; MIPS32: RetRA implicit $v0
27 %0:gprb(p0) = COPY $a0
28 %2:gprb(s32) = G_ZEXTLOAD %0(p0) :: (load 1 from %ir.px)
34 name: load2_s16_to_zextLoad2_s32
38 tracksRegLiveness: true
43 ; MIPS32-LABEL: name: load2_s16_to_zextLoad2_s32
44 ; MIPS32: liveins: $a0
45 ; MIPS32: [[COPY:%[0-9]+]]:gpr32 = COPY $a0
46 ; MIPS32: [[LHu:%[0-9]+]]:gpr32 = LHu [[COPY]], 0 :: (load 2 from %ir.px)
47 ; MIPS32: $v0 = COPY [[LHu]]
48 ; MIPS32: RetRA implicit $v0
49 %0:gprb(p0) = COPY $a0
50 %2:gprb(s32) = G_ZEXTLOAD %0(p0) :: (load 2 from %ir.px)
56 name: load1_s8_to_sextLoad1_s32
60 tracksRegLiveness: true
65 ; MIPS32-LABEL: name: load1_s8_to_sextLoad1_s32
66 ; MIPS32: liveins: $a0
67 ; MIPS32: [[COPY:%[0-9]+]]:gpr32 = COPY $a0
68 ; MIPS32: [[LB:%[0-9]+]]:gpr32 = LB [[COPY]], 0 :: (load 1 from %ir.px)
69 ; MIPS32: $v0 = COPY [[LB]]
70 ; MIPS32: RetRA implicit $v0
71 %0:gprb(p0) = COPY $a0
72 %2:gprb(s32) = G_SEXTLOAD %0(p0) :: (load 1 from %ir.px)
78 name: load2_s16_to_sextLoad2_s32
82 tracksRegLiveness: true
87 ; MIPS32-LABEL: name: load2_s16_to_sextLoad2_s32
88 ; MIPS32: liveins: $a0
89 ; MIPS32: [[COPY:%[0-9]+]]:gpr32 = COPY $a0
90 ; MIPS32: [[LH:%[0-9]+]]:gpr32 = LH [[COPY]], 0 :: (load 2 from %ir.px)
91 ; MIPS32: $v0 = COPY [[LH]]
92 ; MIPS32: RetRA implicit $v0
93 %0:gprb(p0) = COPY $a0
94 %2:gprb(s32) = G_SEXTLOAD %0(p0) :: (load 2 from %ir.px)