blob: c8eaeeab24b86b685c02eae530f780e122564f8b [file] [log] [blame]
Reid Spencer9aafdcf2007-04-15 09:21:47 +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
Chris Lattner18467832006-12-10 23:52:28 +00007
Chris Lattner18467832006-12-10 23:52:28 +00008int %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}