111 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=regbankselect -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=MIPS323# RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=regbankselect -mcpu=mips32r6 -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=MIPS32R64--- |5 6 @float_align1 = common global float 0.000000e+00, align 17 @float_align4 = common global float 0.000000e+00, align 48 @i32_align8 = common global i32 0, align 89 10 define void @store_float_align1(float %a) {11 entry:12 store float %a, ptr @float_align1, align 113 ret void14 }15 16 define void @store_float_align4(float %a) {17 entry:18 store float %a, ptr @float_align4, align 419 ret void20 }21 22 define void @store_i32_align8(i32 signext %a) {23 entry:24 store i32 %a, ptr @i32_align8, align 825 ret void26 }27 28...29---30name: store_float_align131alignment: 432legalized: true33tracksRegLiveness: true34body: |35 bb.1.entry:36 liveins: $f1237 38 ; MIPS32-LABEL: name: store_float_align139 ; MIPS32: liveins: $f1240 ; MIPS32: [[COPY:%[0-9]+]]:fprb(s32) = COPY $f1241 ; MIPS32: [[GV:%[0-9]+]]:gprb(p0) = G_GLOBAL_VALUE @float_align142 ; MIPS32: [[COPY1:%[0-9]+]]:gprb(s32) = COPY [[COPY]](s32)43 ; MIPS32: G_STORE [[COPY1]](s32), [[GV]](p0) :: (store (s32) into @float_align1, align 1)44 ; MIPS32: RetRA45 ; MIPS32R6-LABEL: name: store_float_align146 ; MIPS32R6: liveins: $f1247 ; MIPS32R6: [[COPY:%[0-9]+]]:fprb(s32) = COPY $f1248 ; MIPS32R6: [[GV:%[0-9]+]]:gprb(p0) = G_GLOBAL_VALUE @float_align149 ; MIPS32R6: G_STORE [[COPY]](s32), [[GV]](p0) :: (store (s32) into @float_align1, align 1)50 ; MIPS32R6: RetRA51 %0:_(s32) = COPY $f1252 %1:_(p0) = G_GLOBAL_VALUE @float_align153 G_STORE %0(s32), %1(p0) :: (store (s32) into @float_align1, align 1)54 RetRA55 56...57---58name: store_float_align459alignment: 460legalized: true61tracksRegLiveness: true62body: |63 bb.1.entry:64 liveins: $f1265 66 ; MIPS32-LABEL: name: store_float_align467 ; MIPS32: liveins: $f1268 ; MIPS32: [[COPY:%[0-9]+]]:fprb(s32) = COPY $f1269 ; MIPS32: [[GV:%[0-9]+]]:gprb(p0) = G_GLOBAL_VALUE @float_align470 ; MIPS32: G_STORE [[COPY]](s32), [[GV]](p0) :: (store (s32) into @float_align4)71 ; MIPS32: RetRA72 ; MIPS32R6-LABEL: name: store_float_align473 ; MIPS32R6: liveins: $f1274 ; MIPS32R6: [[COPY:%[0-9]+]]:fprb(s32) = COPY $f1275 ; MIPS32R6: [[GV:%[0-9]+]]:gprb(p0) = G_GLOBAL_VALUE @float_align476 ; MIPS32R6: G_STORE [[COPY]](s32), [[GV]](p0) :: (store (s32) into @float_align4)77 ; MIPS32R6: RetRA78 %0:_(s32) = COPY $f1279 %1:_(p0) = G_GLOBAL_VALUE @float_align480 G_STORE %0(s32), %1(p0) :: (store (s32) into @float_align4)81 RetRA82 83...84---85name: store_i32_align886alignment: 487legalized: true88tracksRegLiveness: true89body: |90 bb.1.entry:91 liveins: $a092 93 ; MIPS32-LABEL: name: store_i32_align894 ; MIPS32: liveins: $a095 ; MIPS32: [[COPY:%[0-9]+]]:gprb(s32) = COPY $a096 ; MIPS32: [[GV:%[0-9]+]]:gprb(p0) = G_GLOBAL_VALUE @i32_align897 ; MIPS32: G_STORE [[COPY]](s32), [[GV]](p0) :: (store (s32) into @i32_align8, align 8)98 ; MIPS32: RetRA99 ; MIPS32R6-LABEL: name: store_i32_align8100 ; MIPS32R6: liveins: $a0101 ; MIPS32R6: [[COPY:%[0-9]+]]:gprb(s32) = COPY $a0102 ; MIPS32R6: [[GV:%[0-9]+]]:gprb(p0) = G_GLOBAL_VALUE @i32_align8103 ; MIPS32R6: G_STORE [[COPY]](s32), [[GV]](p0) :: (store (s32) into @i32_align8, align 8)104 ; MIPS32R6: RetRA105 %0:_(s32) = COPY $a0106 %1:_(p0) = G_GLOBAL_VALUE @i32_align8107 G_STORE %0(s32), %1(p0) :: (store (s32) into @i32_align8, align 8)108 RetRA109 110...111