blob: 0985f0cd3b479a72cc5420259113dc81abe13ecc [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
5
6target endian = little
7
8<4 x int> %test(<4 x float> %X) {
9 %X_addr = alloca <4 x float>
10 store <4 x float> %X, <4 x float>* %X_addr
11 %X_addr = bitcast <4 x float>* %X_addr to <4 x int>*
12 %tmp = load <4 x int>* %X_addr
13 ret <4 x int> %tmp
14}