brintos

brintos / llvm-project-archived public Read only

0
0
Text · 847 B · dd63128 Raw
37 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -mtriple=x86_64-linux-gnu -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s3 4--- |5 6  define ptr @inttoptr_p0_s64(i64 %val) {7  entry:8    %0 = inttoptr i64 %val to ptr9    ret ptr %010  }11 12...13---14name:            inttoptr_p0_s6415alignment:       1616legalized:       true17regBankSelected: true18tracksRegLiveness: true19registers:20  - { id: 0, class: gpr }21  - { id: 1, class: gpr }22body:             |23  bb.1.entry:24    liveins: $rdi25 26    ; CHECK-LABEL: name: inttoptr_p0_s6427    ; CHECK: liveins: $rdi28    ; CHECK: [[COPY:%[0-9]+]]:gr64 = COPY $rdi29    ; CHECK: $rax = COPY [[COPY]]30    ; CHECK: RET 0, implicit $rax31    %0:gpr(s64) = COPY $rdi32    %1:gpr(p0) = G_INTTOPTR %0(s64)33    $rax = COPY %1(p0)34    RET 0, implicit $rax35 36...37