brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · ca5d866 Raw
48 lines · plain
1; RUN: opt %loadNPMPolly -polly-process-unprofitable '-passes=polly-custom<ast>' -polly-print-scops -polly-print-ast -disable-output -S < %s | FileCheck %s --check-prefix=AST2; RUN: opt %loadNPMPolly -polly-process-unprofitable '-passes=polly-custom<codegen>' -polly-print-scops -S < %s | FileCheck %s --check-prefix=CODEGEN3 4target datalayout = "e-m:e-i64:64-i128:128-n8:16:32:64-S128"5target triple = "aarch64--linux-gnu"6 7; This test is to ensure that for we generate signed remainder for8; the polly.cond check.9 10; AST: isl ast :: foo111; AST: if ((a1 - b1) % 24 == 0)12 13; CODEGEN: define void @foo114; CODEGEN: polly.cond:15; CODEGEN: %pexp.zdiv_r = srem {{.*}}, 2416 17%struct.A = type { i32, i64, i8 }18 19; Function Attrs: norecurse nounwind20define void @foo1(ptr %a1, ptr readnone %b1) #0 {21entry:22  br label %entry.split23 24entry.split:                                      ; preds = %entry25  %cmp4 = icmp eq ptr %a1, %b126  br i1 %cmp4, label %for.cond.cleanup, label %for.body.preheader27 28for.body.preheader:                               ; preds = %entry.split29  br label %for.body30 31for.cond.cleanup.loopexit:                        ; preds = %for.body32  br label %for.cond.cleanup33 34for.cond.cleanup:                                 ; preds = %for.cond.cleanup.loopexit, %entry.split35  ret void36 37for.body:                                         ; preds = %for.body.preheader, %for.body38  %start.05 = phi ptr [ %incdec.ptr, %for.body ], [ %a1, %for.body.preheader ]39  %0 = load i32, ptr %start.05, align 840  %add = add nsw i32 %0, 141  store i32 %add, ptr %start.05, align 842  %incdec.ptr = getelementptr inbounds %struct.A, ptr %start.05, i64 143  %cmp = icmp eq ptr %incdec.ptr, %b144  br i1 %cmp, label %for.cond.cleanup.loopexit, label %for.body45}46 47 48