mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-08 09:03:18 +00:00
7d136d952e
Some Polly ACC test cases fail without a working NVPTX backend. We explicitly specify this dependence in REQUIRES. Alternatively, we could have only marked polly-acc as supported in case the NVPTX backend is available, but as we might use other backends in the future, this does not seem to be the best choice. For this to work, we also need to make the 'targets_to_build' information available. Suggested-by: Michael Kruse <llvm@meinersbur.de> llvm-svn: 296853
40 lines
1.1 KiB
LLVM
40 lines
1.1 KiB
LLVM
; RUN: opt %loadPolly -polly-codegen-ppcg -polly-acc-dump-code -disable-output %s
|
|
|
|
; XFAIL: *
|
|
|
|
; REQUIRES: pollyacc,nvptx
|
|
|
|
; This fails today with "LowerFormalArguments didn't emit the correct number of
|
|
; values!"
|
|
|
|
; void foo(i128 A[], i128 b) {
|
|
; for (long i = 0; i < 1024; i++)
|
|
; A[i] += b;
|
|
; }
|
|
;
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
|
|
define void @i128(i128* %A, i128 %b) {
|
|
bb:
|
|
br label %bb1
|
|
|
|
bb1: ; preds = %bb5, %bb
|
|
%i.0 = phi i128 [ 0, %bb ], [ %tmp6, %bb5 ]
|
|
%exitcond = icmp ne i128 %i.0, 1024
|
|
br i1 %exitcond, label %bb2, label %bb7
|
|
|
|
bb2: ; preds = %bb1
|
|
%tmp = getelementptr inbounds i128, i128* %A, i128 %i.0
|
|
%tmp3 = load i128, i128* %tmp, align 4
|
|
%tmp4 = add i128 %tmp3, %b
|
|
store i128 %tmp4, i128* %tmp, align 4
|
|
br label %bb5
|
|
|
|
bb5: ; preds = %bb2
|
|
%tmp6 = add nuw nsw i128 %i.0, 1
|
|
br label %bb1
|
|
|
|
bb7: ; preds = %bb1
|
|
ret void
|
|
}
|