1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=x86_64-linux-gnu -run-pass=legalizer %s -o - | FileCheck %s --check-prefix=ALL
5 define double @test(float %a) {
7 %conv = fpext float %a to double
16 regBankSelected: false
18 - { id: 0, class: _, preferred-register: '' }
19 - { id: 1, class: _, preferred-register: '' }
20 - { id: 2, class: _, preferred-register: '' }
21 - { id: 3, class: _, preferred-register: '' }
26 ; ALL-LABEL: name: test
27 ; ALL: [[COPY:%[0-9]+]]:_(s128) = COPY $xmm0
28 ; ALL: [[TRUNC:%[0-9]+]]:_(s32) = G_TRUNC [[COPY]](s128)
29 ; ALL: [[FPEXT:%[0-9]+]]:_(s64) = G_FPEXT [[TRUNC]](s32)
30 ; ALL: [[ANYEXT:%[0-9]+]]:_(s128) = G_ANYEXT [[FPEXT]](s64)
31 ; ALL: $xmm0 = COPY [[ANYEXT]](s128)
32 ; ALL: RET 0, implicit $xmm0
33 %1:_(s128) = COPY $xmm0
34 %0:_(s32) = G_TRUNC %1(s128)
35 %2:_(s64) = G_FPEXT %0(s32)
36 %3:_(s128) = G_ANYEXT %2(s64)