blob: 54ccab4ce90b9e3154d8eba5eb1ebd2b1a88706d [file] [log] [blame]
Nate Begemaneeff9b02005-09-06 22:23:15 +00001; fcfid and fctid should be generated when the 64bit feature is enabled, but not
2; otherwise.
3
4; RUN: llvm-as < %s | llc -march=ppc32 -mattr=+64bit | grep 'fcfid' &&
5; RUN: llvm-as < %s | llc -march=ppc32 -mattr=+64bit | grep 'fctidz' &&
6; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 | grep 'fcfid' &&
7; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 | grep 'fctidz' &&
8; RUN: llvm-as < %s | llc -march=ppc32 -mattr=-64bit | not grep 'fcfid' &&
9; RUN: llvm-as < %s | llc -march=ppc32 -mattr=-64bit | not grep 'fctidz' &&
10; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g4 | not grep 'fcfid' &&
11; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g4 | not grep 'fctidz'
12
13double %X(double %Y) {
14 %A = cast double %Y to long
15 %B = cast long %A to double
16 ret double %B
17}