brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.1 KiB · e22a445 Raw
140 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=legalizer -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=MIPS323---4name:            load1_s8_to_load1_s325alignment:       46tracksRegLiveness: true7body:             |8  bb.0:9    liveins: $a010 11    ; MIPS32-LABEL: name: load1_s8_to_load1_s3212    ; MIPS32: liveins: $a013    ; MIPS32-NEXT: {{  $}}14    ; MIPS32-NEXT: [[COPY:%[0-9]+]]:_(p0) = COPY $a015    ; MIPS32-NEXT: [[LOAD:%[0-9]+]]:_(s32) = G_LOAD [[COPY]](p0) :: (load (s8))16    ; MIPS32-NEXT: $v0 = COPY [[LOAD]](s32)17    ; MIPS32-NEXT: RetRA implicit $v018    %0:_(p0) = COPY $a019    %2:_(s32) = G_LOAD %0(p0) :: (load (s8))20    $v0 = COPY %2(s32)21    RetRA implicit $v022 23...24---25name:            load2_s16_to_load2_s3226alignment:       427tracksRegLiveness: true28body:             |29  bb.0:30    liveins: $a031 32    ; MIPS32-LABEL: name: load2_s16_to_load2_s3233    ; MIPS32: liveins: $a034    ; MIPS32-NEXT: {{  $}}35    ; MIPS32-NEXT: [[COPY:%[0-9]+]]:_(p0) = COPY $a036    ; MIPS32-NEXT: [[LOAD:%[0-9]+]]:_(s32) = G_LOAD [[COPY]](p0) :: (load (s16))37    ; MIPS32-NEXT: $v0 = COPY [[LOAD]](s32)38    ; MIPS32-NEXT: RetRA implicit $v039    %0:_(p0) = COPY $a040    %2:_(s32) = G_LOAD %0(p0) :: (load (s16))41    $v0 = COPY %2(s32)42    RetRA implicit $v043 44...45---46name:            load_store_i147alignment:       448tracksRegLiveness: true49body:             |50  bb.0:51    liveins: $a0, $a152 53    ; MIPS32-LABEL: name: load_store_i154    ; MIPS32: liveins: $a0, $a155    ; MIPS32-NEXT: {{  $}}56    ; MIPS32-NEXT: [[COPY:%[0-9]+]]:_(p0) = COPY $a057    ; MIPS32-NEXT: [[COPY1:%[0-9]+]]:_(p0) = COPY $a158    ; MIPS32-NEXT: [[LOAD:%[0-9]+]]:_(s32) = G_LOAD [[COPY1]](p0) :: (load (s8))59    ; MIPS32-NEXT: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 160    ; MIPS32-NEXT: [[AND:%[0-9]+]]:_(s32) = G_AND [[LOAD]], [[C]]61    ; MIPS32-NEXT: [[AND1:%[0-9]+]]:_(s32) = G_AND [[AND]], [[C]]62    ; MIPS32-NEXT: G_STORE [[AND1]](s32), [[COPY]](p0) :: (store (s8))63    ; MIPS32-NEXT: RetRA64    %0:_(p0) = COPY $a065    %1:_(p0) = COPY $a166    %2:_(s1) = G_LOAD %1(p0) :: (load (s1))67    G_STORE %2(s1), %0(p0) :: (store (s1))68    RetRA69 70...71---72name:            load_store_i873alignment:       474tracksRegLiveness: true75body:             |76  bb.0:77    liveins: $a0, $a178 79    ; MIPS32-LABEL: name: load_store_i880    ; MIPS32: liveins: $a0, $a181    ; MIPS32-NEXT: {{  $}}82    ; MIPS32-NEXT: [[COPY:%[0-9]+]]:_(p0) = COPY $a083    ; MIPS32-NEXT: [[COPY1:%[0-9]+]]:_(p0) = COPY $a184    ; MIPS32-NEXT: [[LOAD:%[0-9]+]]:_(s32) = G_LOAD [[COPY1]](p0) :: (load (s8))85    ; MIPS32-NEXT: G_STORE [[LOAD]](s32), [[COPY]](p0) :: (store (s8))86    ; MIPS32-NEXT: RetRA87    %0:_(p0) = COPY $a088    %1:_(p0) = COPY $a189    %2:_(s8) = G_LOAD %1(p0) :: (load (s8))90    G_STORE %2(s8), %0(p0) :: (store (s8))91    RetRA92 93...94---95name:            load_store_i1696alignment:       497tracksRegLiveness: true98body:             |99  bb.0:100    liveins: $a0, $a1101 102    ; MIPS32-LABEL: name: load_store_i16103    ; MIPS32: liveins: $a0, $a1104    ; MIPS32-NEXT: {{  $}}105    ; MIPS32-NEXT: [[COPY:%[0-9]+]]:_(p0) = COPY $a0106    ; MIPS32-NEXT: [[COPY1:%[0-9]+]]:_(p0) = COPY $a1107    ; MIPS32-NEXT: [[LOAD:%[0-9]+]]:_(s32) = G_LOAD [[COPY1]](p0) :: (load (s16))108    ; MIPS32-NEXT: G_STORE [[LOAD]](s32), [[COPY]](p0) :: (store (s16))109    ; MIPS32-NEXT: RetRA110    %0:_(p0) = COPY $a0111    %1:_(p0) = COPY $a1112    %2:_(s16) = G_LOAD %1(p0) :: (load (s16))113    G_STORE %2(s16), %0(p0) :: (store (s16))114    RetRA115 116...117---118name:            load_store_i32119alignment:       4120tracksRegLiveness: true121body:             |122  bb.0:123    liveins: $a0, $a1124 125    ; MIPS32-LABEL: name: load_store_i32126    ; MIPS32: liveins: $a0, $a1127    ; MIPS32-NEXT: {{  $}}128    ; MIPS32-NEXT: [[COPY:%[0-9]+]]:_(p0) = COPY $a0129    ; MIPS32-NEXT: [[COPY1:%[0-9]+]]:_(p0) = COPY $a1130    ; MIPS32-NEXT: [[LOAD:%[0-9]+]]:_(s32) = G_LOAD [[COPY1]](p0) :: (load (s32))131    ; MIPS32-NEXT: G_STORE [[LOAD]](s32), [[COPY]](p0) :: (store (s32))132    ; MIPS32-NEXT: RetRA133    %0:_(p0) = COPY $a0134    %1:_(p0) = COPY $a1135    %2:_(s32) = G_LOAD %1(p0) :: (load (s32))136    G_STORE %2(s32), %0(p0) :: (store (s32))137    RetRA138 139...140