brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · e56b48b Raw
52 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=instruction-select -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:       412legalized:       true13regBankSelected: true14tracksRegLiveness: true15body:             |16  bb.1.entry:17    liveins: $a018 19    ; MIPS32-LABEL: name: inttoptr20    ; MIPS32: liveins: $a021    ; MIPS32: [[COPY:%[0-9]+]]:gpr32 = COPY $a022    ; MIPS32: $v0 = COPY [[COPY]]23    ; MIPS32: RetRA implicit $v024    %0:gprb(s32) = COPY $a025    %1:gprb(p0) = G_INTTOPTR %0(s32)26    $v0 = COPY %1(p0)27    RetRA implicit $v028 29...30---31name:            ptrtoint32alignment:       433legalized:       true34regBankSelected: true35tracksRegLiveness: true36body:             |37  bb.1.entry:38    liveins: $a039 40    ; MIPS32-LABEL: name: ptrtoint41    ; MIPS32: liveins: $a042    ; MIPS32: [[COPY:%[0-9]+]]:gpr32 = COPY $a043    ; MIPS32: $v0 = COPY [[COPY]]44    ; MIPS32: RetRA implicit $v045    %0:gprb(p0) = COPY $a046    %1:gprb(s32) = G_PTRTOINT %0(p0)47    $v0 = COPY %1(s32)48    RetRA implicit $v049 50...51 52