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(i8* %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(i16* %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, i16* %px
26 define void @load_store_i1(i1* %px, i1* %py) {
27 ; MIPS32-LABEL: load_store_i1:
28 ; MIPS32: # %bb.0: # %entry
29 ; MIPS32-NEXT: lbu $1, 0($5)
30 ; MIPS32-NEXT: ori $2, $zero, 1
31 ; MIPS32-NEXT: and $1, $1, $2
32 ; MIPS32-NEXT: sb $1, 0($4)
41 define void @load_store_i8(i8* %px, i8* %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(i16* %px, i16* %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, i16* %py
63 store i16 %0, i16* %px
67 define void @load_store_i32(i32* %px, i32* %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, i32* %py
76 store i32 %0, i32* %px