2007-04-15 21:17:45 +00:00
|
|
|
; fcfid and fctid should be generated when the 64bit feature is enabled, but not
|
2005-09-06 22:23:15 +00:00
|
|
|
; otherwise.
|
|
|
|
|
2009-09-09 00:09:15 +00:00
|
|
|
; RUN: llc < %s -march=ppc32 -mattr=+64bit | \
|
2007-04-15 21:17:45 +00:00
|
|
|
; RUN: grep fcfid
|
2009-09-09 00:09:15 +00:00
|
|
|
; RUN: llc < %s -march=ppc32 -mattr=+64bit | \
|
2007-04-15 21:17:45 +00:00
|
|
|
; RUN: grep fctidz
|
2009-09-09 00:09:15 +00:00
|
|
|
; RUN: llc < %s -march=ppc32 -mcpu=g5 | \
|
2007-04-15 21:17:45 +00:00
|
|
|
; RUN: grep fcfid
|
2009-09-09 00:09:15 +00:00
|
|
|
; RUN: llc < %s -march=ppc32 -mcpu=g5 | \
|
2007-04-15 21:17:45 +00:00
|
|
|
; RUN: grep fctidz
|
2009-09-09 00:09:15 +00:00
|
|
|
; RUN: llc < %s -march=ppc32 -mattr=-64bit | \
|
2007-04-15 21:17:45 +00:00
|
|
|
; RUN: not grep fcfid
|
2009-09-09 00:09:15 +00:00
|
|
|
; RUN: llc < %s -march=ppc32 -mattr=-64bit | \
|
2007-04-15 21:17:45 +00:00
|
|
|
; RUN: not grep fctidz
|
2009-09-09 00:09:15 +00:00
|
|
|
; RUN: llc < %s -march=ppc32 -mcpu=g4 | \
|
2007-04-15 21:17:45 +00:00
|
|
|
; RUN: not grep fcfid
|
2009-09-09 00:09:15 +00:00
|
|
|
; RUN: llc < %s -march=ppc32 -mcpu=g4 | \
|
2007-04-15 21:17:45 +00:00
|
|
|
; RUN: not grep fctidz
|
2005-09-06 22:23:15 +00:00
|
|
|
|
2008-02-19 08:07:33 +00:00
|
|
|
define double @X(double %Y) {
|
|
|
|
%A = fptosi double %Y to i64 ; <i64> [#uses=1]
|
|
|
|
%B = sitofp i64 %A to double ; <double> [#uses=1]
|
|
|
|
ret double %B
|
2005-09-06 22:23:15 +00:00
|
|
|
}
|
2008-02-19 08:07:33 +00:00
|
|
|
|