Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2015-06-03 18:14:58 +0300
committerTobias Grosser <tobias@grosser.es>2015-06-03 18:14:58 +0300
commit244c8297cf111014bf1ca90d2219cf6e1656721d (patch)
tree1506012f6fd882ae6d629732cece3875249501f3 /polly/test
parent14c4dab6036607c38f5f1dc522a5025618ef55db (diff)
Lower signed-divisions without rounding to ashr instructions
llvm-svn: 238929
Diffstat (limited to 'polly/test')
-rw-r--r--polly/test/Isl/CodeGen/exprModDiv.ll8
1 files changed, 3 insertions, 5 deletions
diff --git a/polly/test/Isl/CodeGen/exprModDiv.ll b/polly/test/Isl/CodeGen/exprModDiv.ll
index 91d27fabbbc7..81a8f496c254 100644
--- a/polly/test/Isl/CodeGen/exprModDiv.ll
+++ b/polly/test/Isl/CodeGen/exprModDiv.ll
@@ -46,10 +46,8 @@
; POW2: %polly.access.A6 = getelementptr float, float* %A, i64 %pexp.pdiv_r
; A[i / 128]
-; POW2: %pexp.div = sdiv i64 %polly.indvar, 128
+; POW2: %pexp.div.shr = ashr i64 %polly.indvar, 7
; POW2: %polly.access.B8 = getelementptr float, float* %B, i64 %pexp.div
-;
-; FIXME: Make isl mark this as an udiv expression.
; #define floord(n,d) ((n < 0) ? (n - d + 1) : n) / d
; A[p + 128 * floord(-p - 1, 128) + 128]
@@ -62,8 +60,8 @@
; POW2: %polly.access.A10 = getelementptr float, float* %A, i64 %24
; A[p / 128]
-; POW2: %pexp.div12 = sdiv i64 %p, 128
-; POW2: %polly.access.B13 = getelementptr float, float* %B, i64 %pexp.div12
+; POW2: %pexp.div.shr12 = ashr i64 %p, 7
+; POW2: %polly.access.B13 = getelementptr float, float* %B, i64 %pexp.div.shr12
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"