aboutsummaryrefslogtreecommitdiffstats
path: root/mppa_k1c/ConstpropOp.vp
diff options
context:
space:
mode:
authorCyril SIX <cyril.six@kalray.eu>2019-05-03 14:32:36 +0200
committerCyril SIX <cyril.six@kalray.eu>2019-05-03 14:32:36 +0200
commit452da0d77523d15830d7a78198092d72822063a6 (patch)
tree273bf5fc7e715d80a75f5c83d06cfd32e9266d74 /mppa_k1c/ConstpropOp.vp
parent24e97bd87918f2c487416744ba12a78aba35a9e5 (diff)
parent9976dba5412be7e834abb63ac2293f1da288a185 (diff)
downloadcompcert-kvx-452da0d77523d15830d7a78198092d72822063a6.tar.gz
compcert-kvx-452da0d77523d15830d7a78198092d72822063a6.zip
Merge branch 'mppa-work' into mppa_k1c
Diffstat (limited to 'mppa_k1c/ConstpropOp.vp')
-rw-r--r--mppa_k1c/ConstpropOp.vp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mppa_k1c/ConstpropOp.vp b/mppa_k1c/ConstpropOp.vp
index aab2424d..b5128357 100644
--- a/mppa_k1c/ConstpropOp.vp
+++ b/mppa_k1c/ConstpropOp.vp
@@ -298,7 +298,7 @@ Nondetfunction addr_strength_reduction
(addr: addressing) (args: list reg) (vl: list aval) :=
match addr, args, vl with
| Aindexed n, r1 :: nil, Ptr(Gl symb n1) :: nil =>
- if Archi.pic_code tt
+ if (orb (Archi.pic_code tt) (negb (Compopts.optim_fglobaladdrtmp tt)))
then (addr, args)
else (Aglobal symb (Ptrofs.add n1 n), nil)
| Aindexed n, r1 :: nil, Ptr(Stk n1) :: nil =>