Nate Begeman | eeff9b0 | 2005-09-06 22:23:15 +0000 | [diff] [blame^] | 1 | ; 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 | |
| 13 | double %X(double %Y) { |
| 14 | %A = cast double %Y to long |
| 15 | %B = cast long %A to double |
| 16 | ret double %B |
| 17 | } |