brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 057ab7c Raw
40 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -mtriple=x86_64-linux-gnu -run-pass=legalizer %s -o - | FileCheck %s --check-prefix=ALL3--- |4 5  define float @test_fptrunc(double %in) {6    %res = fptrunc double %in to float7    ret float %res8  }9 10...11---12name:            test_fptrunc13alignment:       1614tracksRegLiveness: true15registers:16  - { id: 0, class: _ }17  - { id: 1, class: _ }18  - { id: 2, class: _ }19  - { id: 3, class: _ }20body:             |21  bb.1 (%ir-block.0):22    liveins: $xmm023 24    ; ALL-LABEL: name: test_fptrunc25    ; ALL: liveins: $xmm026    ; ALL: [[COPY:%[0-9]+]]:_(s128) = COPY $xmm027    ; ALL: [[TRUNC:%[0-9]+]]:_(s64) = G_TRUNC [[COPY]](s128)28    ; ALL: [[FPTRUNC:%[0-9]+]]:_(s32) = G_FPTRUNC [[TRUNC]](s64)29    ; ALL: [[ANYEXT:%[0-9]+]]:_(s128) = G_ANYEXT [[FPTRUNC]](s32)30    ; ALL: $xmm0 = COPY [[ANYEXT]](s128)31    ; ALL: RET 0, implicit $xmm032    %1:_(s128) = COPY $xmm033    %0:_(s64) = G_TRUNC %1(s128)34    %2:_(s32) = G_FPTRUNC %0(s64)35    %3:_(s128) = G_ANYEXT %2(s32)36    $xmm0 = COPY %3(s128)37    RET 0, implicit $xmm038 39...40