brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 4d34f21 Raw
49 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--- |4 5  define void @inttoptr() {entry: ret void}6  define void @ptrtoint() {entry: ret void}7 8...9---10name:            inttoptr11alignment:       412tracksRegLiveness: true13body:             |14  bb.1.entry:15    liveins: $a016 17    ; MIPS32-LABEL: name: inttoptr18    ; MIPS32: liveins: $a019    ; MIPS32: [[COPY:%[0-9]+]]:_(s32) = COPY $a020    ; MIPS32: [[INTTOPTR:%[0-9]+]]:_(p0) = G_INTTOPTR [[COPY]](s32)21    ; MIPS32: $v0 = COPY [[INTTOPTR]](p0)22    ; MIPS32: RetRA implicit $v023    %0:_(s32) = COPY $a024    %1:_(p0) = G_INTTOPTR %0(s32)25    $v0 = COPY %1(p0)26    RetRA implicit $v027 28...29---30name:            ptrtoint31alignment:       432tracksRegLiveness: true33body:             |34  bb.1.entry:35    liveins: $a036 37    ; MIPS32-LABEL: name: ptrtoint38    ; MIPS32: liveins: $a039    ; MIPS32: [[COPY:%[0-9]+]]:_(p0) = COPY $a040    ; MIPS32: [[PTRTOINT:%[0-9]+]]:_(s32) = G_PTRTOINT [[COPY]](p0)41    ; MIPS32: $v0 = COPY [[PTRTOINT]](s32)42    ; MIPS32: RetRA implicit $v043    %0:_(p0) = COPY $a044    %1:_(s32) = G_PTRTOINT %0(p0)45    $v0 = COPY %1(s32)46    RetRA implicit $v047 48...49