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 3--- | 4 5 define double @test(float %a) { 6 entry: 7 %conv = fpext float %a to double 8 ret double %conv 9 } 10 11... 12--- 13name: test 14alignment: 16 15legalized: false 16regBankSelected: false 17registers: 18 - { id: 0, class: _, preferred-register: '' } 19 - { id: 1, class: _, preferred-register: '' } 20 - { id: 2, class: _, preferred-register: '' } 21 - { id: 3, class: _, preferred-register: '' } 22body: | 23 bb.1.entry: 24 liveins: $xmm0 25 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) 37 $xmm0 = COPY %3(s128) 38 RET 0, implicit $xmm0 39 40... 41