1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -O0 -mtriple=mipsel-linux-gnu -global-isel -verify-machineinstrs %s -o -| FileCheck %s -check-prefixes=MIPS32
4 define i8 @load1_s8_to_load1_s32(ptr %px) {
5 ; MIPS32-LABEL: load1_s8_to_load1_s32:
6 ; MIPS32: # %bb.0: # %entry
7 ; MIPS32-NEXT: lbu $2, 0($4)
15 define i16 @load2_s16_to_load2_s32(ptr %px) {
16 ; MIPS32-LABEL: load2_s16_to_load2_s32:
17 ; MIPS32: # %bb.0: # %entry
18 ; MIPS32-NEXT: lhu $2, 0($4)
22 %0 = load i16, ptr %px
26 define void @load_store_i1(ptr %px, ptr %py) {
27 ; MIPS32-LABEL: load_store_i1:
28 ; MIPS32: # %bb.0: # %entry
29 ; MIPS32-NEXT: lbu $1, 0($5)
30 ; MIPS32-NEXT: andi $1, $1, 1
31 ; MIPS32-NEXT: andi $1, $1, 1
32 ; MIPS32-NEXT: sb $1, 0($4)
41 define void @load_store_i8(ptr %px, ptr %py) {
42 ; MIPS32-LABEL: load_store_i8:
43 ; MIPS32: # %bb.0: # %entry
44 ; MIPS32-NEXT: lbu $1, 0($5)
45 ; MIPS32-NEXT: sb $1, 0($4)
54 define void @load_store_i16(ptr %px, ptr %py) {
55 ; MIPS32-LABEL: load_store_i16:
56 ; MIPS32: # %bb.0: # %entry
57 ; MIPS32-NEXT: lhu $1, 0($5)
58 ; MIPS32-NEXT: sh $1, 0($4)
62 %0 = load i16, ptr %py
67 define void @load_store_i32(ptr %px, ptr %py) {
68 ; MIPS32-LABEL: load_store_i32:
69 ; MIPS32: # %bb.0: # %entry
70 ; MIPS32-NEXT: lw $1, 0($5)
71 ; MIPS32-NEXT: sw $1, 0($4)
75 %0 = load i32, ptr %py