22 lines · plain
1; RUN: opt -S -aa-pipeline=basic-aa -passes=gvn < %s | FileCheck %s2 3target datalayout = "e-m:o-p:32:32-f64:32:64-f80:128-n8:16:32-S128"4target triple = "i386-apple-macosx10.6.0"5 6; We incorrectly returned noalias in the example below for "tmp5" and7; "tmp12" returning i32 32, since basicaa converted the offsets to 64b8; and missed the wrap-around9 10define i32 @foo(ptr %buffer) {11entry:12 %tmp2 = getelementptr i8, ptr %buffer, i32 -207140843213 %tmp4 = getelementptr i8, ptr %buffer, i32 12814 store i32 32, ptr %tmp4, align 415 %tmp12 = getelementptr i32, ptr %tmp2, i32 -162963150816 store i32 28, ptr %tmp12, align 417 %tmp13 = getelementptr i8, ptr %buffer, i32 12818 %tmp2083 = load i32, ptr %tmp13, align 419; CHECK: ret i32 2820 ret i32 %tmp208321}22