blob: 428dd0c3e3fdd158c4dd4748461d78077c2f8c47 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; This function should have exactly one call to fixdfdi, no more!
2
Tanya Lattner348c6182008-03-25 04:26:08 +00003; RUN: llvm-as < %s | llc -march=ppc32 -mattr=-64bit | \
Dan Gohman8c89a502007-08-15 13:36:28 +00004; RUN: grep {bl .*fixdfdi} | count 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005
Tanya Lattner348c6182008-03-25 04:26:08 +00006define double @test2(double %tmp.7705) {
7 %mem_tmp.2.0.in = fptosi double %tmp.7705 to i64 ; <i64> [#uses=1]
8 %mem_tmp.2.0 = sitofp i64 %mem_tmp.2.0.in to double ; <double> [#uses=1]
9 ret double %mem_tmp.2.0
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010}
Tanya Lattner348c6182008-03-25 04:26:08 +000011