summaryrefslogtreecommitdiffstats
path: root/polly/test/Isl/CodeGen
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2017-09-23 15:32:07 +0000
committerTobias Grosser <tobias@grosser.es>2017-09-23 15:32:07 +0000
commit75d133f0ac5ff201d6c5e09bb37ae86e770bcfaf (patch)
treeb241f56f6934b7d82c7ce3babf43ff4a0e881dd3 /polly/test/Isl/CodeGen
parentfa8bad8a0f85dbf5abf0cc8f404fec13d5b1e0fa (diff)
downloadbcm5719-llvm-75d133f0ac5ff201d6c5e09bb37ae86e770bcfaf.tar.gz
bcm5719-llvm-75d133f0ac5ff201d6c5e09bb37ae86e770bcfaf.zip
[IslExprBuilder] Do not generate RTC with more than 64 bit
Such RTCs may introduce integer wrapping intrinsics with more than 64 bit, which are translated to library calls on AOSP that are not part of the runtime and will consequently cause linker errors. Thanks to Eli Friedman for reporting this issue and reducing the test case. llvm-svn: 314065
Diffstat (limited to 'polly/test/Isl/CodeGen')
-rw-r--r--polly/test/Isl/CodeGen/large-numbers-in-boundary-context.ll11
1 files changed, 5 insertions, 6 deletions
diff --git a/polly/test/Isl/CodeGen/large-numbers-in-boundary-context.ll b/polly/test/Isl/CodeGen/large-numbers-in-boundary-context.ll
index ccd581c7c29..eb9785542fc 100644
--- a/polly/test/Isl/CodeGen/large-numbers-in-boundary-context.ll
+++ b/polly/test/Isl/CodeGen/large-numbers-in-boundary-context.ll
@@ -1,13 +1,12 @@
; RUN: opt %loadPolly -S -polly-codegen < %s | FileCheck %s
;
; The boundary context contains a constant that does not fit in 64 bits. Hence,
-; we will check that we use an appropriaty typed constant, here with 65 bits.
-; An alternative would be to bail out early but that would not be as easy.
-;
-; CHECK: {{.*}} = icmp sle i65 {{.*}}, -9223372036854775810
-;
-; CHECK: polly.start
+; make sure we bail out. On certain systems, e.g. AOSP, no runtime support for
+; 128bit operations is available and consequently the code generation of large
+; values might cause linker errors.
;
+; CHECK: br i1 false, label %polly.start, label %bb11.pre_entry_bb
+
target triple = "x86_64-unknown-linux-gnu"
@global = external global i32, align 4
OpenPOWER on IntegriCloud