blob: c8eaeeab24b86b685c02eae530f780e122564f8b [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl | llvm-dis | \
2; RUN: not grep alloca
3; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl | llvm-dis | \
4; RUN: grep {bitcast.*float.*i32}
5
6implementation
7
8int %test(float %X) {
9 %X_addr = alloca float
10 store float %X, float* %X_addr
11 %X_addr = bitcast float* %X_addr to int*
12 %tmp = load int* %X_addr
13 ret int %tmp
14}