2007-04-15 23:17:45 +02:00
|
|
|
; fcfid and fctid should be generated when the 64bit feature is enabled, but not
|
2005-09-07 00:23:15 +02:00
|
|
|
; otherwise.
|
|
|
|
|
2009-09-09 02:09:15 +02:00
|
|
|
; RUN: llc < %s -march=ppc32 -mattr=+64bit | \
|
2007-04-15 23:17:45 +02:00
|
|
|
; RUN: grep fcfid
|
2009-09-09 02:09:15 +02:00
|
|
|
; RUN: llc < %s -march=ppc32 -mattr=+64bit | \
|
2007-04-15 23:17:45 +02:00
|
|
|
; RUN: grep fctidz
|
2009-09-09 02:09:15 +02:00
|
|
|
; RUN: llc < %s -march=ppc32 -mcpu=g5 | \
|
2007-04-15 23:17:45 +02:00
|
|
|
; RUN: grep fcfid
|
2009-09-09 02:09:15 +02:00
|
|
|
; RUN: llc < %s -march=ppc32 -mcpu=g5 | \
|
2007-04-15 23:17:45 +02:00
|
|
|
; RUN: grep fctidz
|
2009-09-09 02:09:15 +02:00
|
|
|
; RUN: llc < %s -march=ppc32 -mattr=-64bit | \
|
2007-04-15 23:17:45 +02:00
|
|
|
; RUN: not grep fcfid
|
2009-09-09 02:09:15 +02:00
|
|
|
; RUN: llc < %s -march=ppc32 -mattr=-64bit | \
|
2007-04-15 23:17:45 +02:00
|
|
|
; RUN: not grep fctidz
|
2009-09-09 02:09:15 +02:00
|
|
|
; RUN: llc < %s -march=ppc32 -mcpu=g4 | \
|
2007-04-15 23:17:45 +02:00
|
|
|
; RUN: not grep fcfid
|
2009-09-09 02:09:15 +02:00
|
|
|
; RUN: llc < %s -march=ppc32 -mcpu=g4 | \
|
2007-04-15 23:17:45 +02:00
|
|
|
; RUN: not grep fctidz
|
2005-09-07 00:23:15 +02:00
|
|
|
|
2008-02-19 09:07:33 +01: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-07 00:23:15 +02:00
|
|
|
}
|
2008-02-19 09:07:33 +01:00
|
|
|
|