blob: aa2cf9306fc66c93cbc3577336c14468d4d21a59 [file] [log] [blame]
Reid Spencer840cc9e2006-12-11 23:19:53 +00001; This test ensures that we get a bitcast constant expression in and out,
2; not a sitofp constant expression.
Reid Spencer64050992006-12-29 20:01:32 +00003; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | grep 'bitcast ('
Reid Spencer840cc9e2006-12-11 23:19:53 +00004%G = external global int
5
6float %tryit(int %A) {
7 ret float bitcast( int ptrtoint (int* %G to int) to float)
8}