1 ; RUN: llvm-as < %s | opt -load-vn -gcse -instcombine | llvm-dis | not grep load
3 %X = constant [2 x int] [int 4, int 5]
5 int %test(int* %Y, long %idx) {
6 %P = getelementptr [2 x int]* %X, long 0, long %idx
7 %A = load int* %P ; Load from invariant memory
8 store int 4, int* %Y ; Store could not be to %X