blob: d53c94878409f345b8c9578745bc4c813c1b4840 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; fcfid and fctid should be generated when the 64bit feature is enabled, but not
2; otherwise.
3
Dan Gohmanda594cf2009-09-09 00:09:15 +00004; RUN: llc < %s -march=ppc32 -mattr=+64bit | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005; RUN: grep fcfid
Dan Gohmanda594cf2009-09-09 00:09:15 +00006; RUN: llc < %s -march=ppc32 -mattr=+64bit | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007; RUN: grep fctidz
Dan Gohmanda594cf2009-09-09 00:09:15 +00008; RUN: llc < %s -march=ppc32 -mcpu=g5 | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009; RUN: grep fcfid
Dan Gohmanda594cf2009-09-09 00:09:15 +000010; RUN: llc < %s -march=ppc32 -mcpu=g5 | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011; RUN: grep fctidz
Dan Gohmanda594cf2009-09-09 00:09:15 +000012; RUN: llc < %s -march=ppc32 -mattr=-64bit | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013; RUN: not grep fcfid
Dan Gohmanda594cf2009-09-09 00:09:15 +000014; RUN: llc < %s -march=ppc32 -mattr=-64bit | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015; RUN: not grep fctidz
Dan Gohmanda594cf2009-09-09 00:09:15 +000016; RUN: llc < %s -march=ppc32 -mcpu=g4 | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017; RUN: not grep fcfid
Dan Gohmanda594cf2009-09-09 00:09:15 +000018; RUN: llc < %s -march=ppc32 -mcpu=g4 | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019; RUN: not grep fctidz
20
Tanya Lattner5ebaf3b2008-02-19 08:07:33 +000021define double @X(double %Y) {
22 %A = fptosi double %Y to i64 ; <i64> [#uses=1]
23 %B = sitofp i64 %A to double ; <double> [#uses=1]
24 ret double %B
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025}
Tanya Lattner5ebaf3b2008-02-19 08:07:33 +000026