Fix PR3335 by not turning a store to one address space into a store to another.
[oota-llvm.git] / test / Transforms / GVN / basic.ll
1 ; RUN: llvm-as < %s | opt -gvn | llvm-dis | not grep {%z2 =}
2
3 define i32 @main() {
4 block1:
5         %z1 = bitcast i32 0 to i32
6         br label %block2
7 block2:
8   %z2 = bitcast i32 0 to i32
9   ret i32 %z2
10 }