llvm/test/Analysis/BasicAA/pr35821.ll
Davide Italiano 4b913c23b6 [BasicAA] Fix linearization of shifts beyond the bitwidth.
Thanks to Simon Pilgrim for the reduced testcase.
Fixes PR35821.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@321873 91177308-0d34-0410-b5e6-96231b3b80d8
2018-01-05 16:18:47 +00:00

12 lines
296 B
LLVM

; RUN: opt %s -aa-eval -disable-output 2>&1 | FileCheck %s
; CHECK: 6 Total Alias Queries Performed
; CHECK-NEXT: 6 no alias responses
define void @patatino() {
%G26 = getelementptr i1, i1* undef, i1 undef
%B20 = shl i8 -128, 16
%G47 = getelementptr i1*, i1** undef, i8 %B20
ret void
}