; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py UTC_ARGS: --version 6 ; RUN: opt < %s -disable-output "-passes=print" 2>&1 \ ; RUN: | FileCheck %s --check-prefixes=CHECK,CHECK-ALL ; for (i = 0; i < (1 << 60); i++) { ; A[i] = 0; ; ; if (0 <=s 32*i + (1 << 62)) ; A[32*i + (1 << 62)] = 1; ; } ; ; The dependency exists between the two stores, for exmaple, ; ; memory access | i == 0 | i == 2^59 - 2^57 | i == 2^59 - 2^57 + 2^55 - 1 | i == 2^60 - 32 ; ----------------|--------|------------------|-----------------------------|---------------- ; A[i] | A[0] | | | A[2^60 - 32] ; A[32*i + 2^62] | | A[0] | A[2^60 - 32] | ; define void @symbolic_rdiv_addrec_wrap(ptr %A) { ; CHECK-LABEL: 'symbolic_rdiv_addrec_wrap' ; CHECK-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst: store i8 0, ptr %gep.0, align 1 ; CHECK-NEXT: da analyze - none! ; CHECK-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst: store i8 1, ptr %gep.1, align 1 ; CHECK-NEXT: da analyze - output [*|<]! ; CHECK-NEXT: Src: store i8 1, ptr %gep.1, align 1 --> Dst: store i8 1, ptr %gep.1, align 1 ; CHECK-NEXT: da analyze - output [*]! ; entry: %tc = shl i64 1, 60 %const.1 = shl i64 1, 62 br label %loop.header loop.header: %i = phi i64 [ 0, %entry ], [ %i.inc, %loop.latch ] %offset = phi i64 [ 4611686018427387904, %entry ], [ %offset.next, %loop.latch ] %gep.0 = getelementptr i8, ptr %A, i64 %i store i8 0, ptr %gep.0 %cond = icmp sge i64 %offset, 0 br i1 %cond, label %if.then, label %loop.latch if.then: %gep.1 = getelementptr i8, ptr %A, i64 %offset store i8 1, ptr %gep.1 br label %loop.latch loop.latch: %i.inc = add i64 %i, 1 %offset.next = add i64 %offset, 32 %ec = icmp eq i64 %i.inc, 1152921504606846976 ; 2^60 br i1 %ec, label %exit, label %loop.header exit: ret void } ;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line: ; CHECK-ALL: {{.*}}