1 ; A store or load cannot alias a global if the accessed amount is larger then
4 ; RUN: opt < %s -basicaa -gvn -instcombine -S | not grep load
6 @B = global i16 8 ; <i16*> [#uses=2]
8 define i16 @test(i32* %P) {
9 %X = load i16* @B ; <i16> [#uses=1]
11 %Y = load i16* @B ; <i16> [#uses=1]
12 %Z = sub i16 %Y, %X ; <i16> [#uses=1]