1 ; RUN: opt %loadPolly -polly-scops -pass-remarks-analysis="polly-scops" \
2 ; RUN: -disable-output < %s 2>&1 | FileCheck %s
4 ; CHECK: Signed-unsigned restriction: [p] -> { : p <= -129 or p >= 128 }
6 ; Verify that this test case does not crash when we try to model it.
7 ; At some point we tried to insert a restriction:
8 ; [p] -> { : p <= -129 or p >= 128 }
9 ; which resulted in a crash.
11 target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
13 define void @wobble(ptr %A, i32 %p) {
15 %tmp1 = and i32 %p, 255
18 bb4: ; preds = %bb4, %bb
19 %indvar = phi ptr [ %A, %bb ], [ %indvar.next, %bb4 ]
20 %val = load i16, ptr %indvar
21 %indvar.next = getelementptr inbounds i16, ptr %indvar, i32 %tmp1
22 br i1 false, label %bb4, label %bb9