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 $5, 0($5)
30 ; MIPS32-NEXT: lui $1, 0
31 ; MIPS32-NEXT: ori $1, $1, 1
32 ; MIPS32-NEXT: and $1, $5, $1
33 ; MIPS32-NEXT: sb $1, 0($4)
42 define void @load_store_i8(i8* %px, i8* %py) {
43 ; MIPS32-LABEL: load_store_i8:
44 ; MIPS32: # %bb.0: # %entry
45 ; MIPS32-NEXT: lbu $5, 0($5)
46 ; MIPS32-NEXT: sb $5, 0($4)
55 define void @load_store_i16(i16* %px, i16* %py) {
56 ; MIPS32-LABEL: load_store_i16:
57 ; MIPS32: # %bb.0: # %entry
58 ; MIPS32-NEXT: lhu $5, 0($5)
59 ; MIPS32-NEXT: sh $5, 0($4)
63 %0 = load i16, i16* %py
64 store i16 %0, i16* %px
68 define void @load_store_i32(i32* %px, i32* %py) {
69 ; MIPS32-LABEL: load_store_i32:
70 ; MIPS32: # %bb.0: # %entry
71 ; MIPS32-NEXT: lw $5, 0($5)
72 ; MIPS32-NEXT: sw $5, 0($4)
76 %0 = load i32, i32* %py
77 store i32 %0, i32* %px