2006-12-11-Cast-ConstExpr.ll 329 B

1234567891011
  1. ; This test ensures that we get a bitcast constant expression in and out,
  2. ; not a sitofp constant expression.
  3. ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
  4. ; RUN: verify-uselistorder < %s
  5. ; CHECK: bitcast (
  6. @G = external global i32
  7. define float @tryit(i32 %A) {
  8. ret float bitcast( i32 ptrtoint (i32* @G to i32) to float)
  9. }