25 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -O0 -mtriple=mipsel-linux-gnu -global-isel -verify-machineinstrs %s -o -| FileCheck %s -check-prefixes=MIPS323 4define ptr @inttoptr(i32 %a) {5; MIPS32-LABEL: inttoptr:6; MIPS32: # %bb.0: # %entry7; MIPS32-NEXT: move $2, $48; MIPS32-NEXT: jr $ra9; MIPS32-NEXT: nop10entry:11 %0 = inttoptr i32 %a to ptr12 ret ptr %013}14 15define i32 @ptrtoint(ptr %a) {16; MIPS32-LABEL: ptrtoint:17; MIPS32: # %bb.0: # %entry18; MIPS32-NEXT: move $2, $419; MIPS32-NEXT: jr $ra20; MIPS32-NEXT: nop21entry:22 %0 = ptrtoint ptr %a to i3223 ret i32 %024}25