28 lines · plain
1; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5 | not grep r12 3define double @test1(double %X) {4 %Y = fptosi double %X to i64 ; <i64> [#uses=1]5 %Z = sitofp i64 %Y to double ; <double> [#uses=1]6 ret double %Z7}8 9define float @test2(double %X) {10 %Y = fptosi double %X to i64 ; <i64> [#uses=1]11 %Z = sitofp i64 %Y to float ; <float> [#uses=1]12 ret float %Z13}14 15define double @test3(float %X) {16 %Y = fptosi float %X to i64 ; <i64> [#uses=1]17 %Z = sitofp i64 %Y to double ; <double> [#uses=1]18 ret double %Z19}20 21define float @test4(float %X) {22 %Y = fptosi float %X to i64 ; <i64> [#uses=1]23 %Z = sitofp i64 %Y to float ; <float> [#uses=1]24 ret float %Z25}26 27 28