aboutsummaryrefslogtreecommitdiffstats
path: root/powerpc/Asmexpand.ml
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2016-03-15 11:00:24 +0100
committerBernhard Schommer <bernhardschommer@gmail.com>2016-03-15 11:00:24 +0100
commit34a7ec51c1f1bbfeb973f8e295ac81b65c70251c (patch)
treeb5d1de65396c1bd08e44c282ffd59ab0ba876e8f /powerpc/Asmexpand.ml
parentbac2a0854ea51217690bc6f225da62053ed7ac06 (diff)
downloadcompcert-kvx-34a7ec51c1f1bbfeb973f8e295ac81b65c70251c.tar.gz
compcert-kvx-34a7ec51c1f1bbfeb973f8e295ac81b65c70251c.zip
Revert "Removed unused parameter from is_small/rel_data."
This reverts commit bac2a0854ea51217690bc6f225da62053ed7ac06.
Diffstat (limited to 'powerpc/Asmexpand.ml')
-rw-r--r--powerpc/Asmexpand.ml8
1 files changed, 4 insertions, 4 deletions
diff --git a/powerpc/Asmexpand.ml b/powerpc/Asmexpand.ml
index 917d4466..a6795030 100644
--- a/powerpc/Asmexpand.ml
+++ b/powerpc/Asmexpand.ml
@@ -211,9 +211,9 @@ let expand_builtin_vload chunk args res =
expand_builtin_vload_common chunk GPR11 (Cint _0) res
end
| [BA_addrglobal(id, ofs)] ->
- if symbol_is_small_data id then
+ if symbol_is_small_data id ofs then
expand_builtin_vload_common chunk GPR0 (Csymbol_sda(id, ofs)) res
- else if symbol_is_rel_data id then begin
+ else if symbol_is_rel_data id ofs then begin
emit (Paddis(GPR11, GPR0, Csymbol_rel_high(id, ofs)));
expand_builtin_vload_common chunk GPR11 (Csymbol_rel_low(id, ofs)) res
end else begin
@@ -268,9 +268,9 @@ let expand_builtin_vstore chunk args =
expand_builtin_vstore_common chunk tmp (Cint _0) src
end
| [BA_addrglobal(id, ofs); src] ->
- if symbol_is_small_data id then
+ if symbol_is_small_data id ofs then
expand_builtin_vstore_common chunk GPR0 (Csymbol_sda(id, ofs)) src
- else if symbol_is_rel_data id then begin
+ else if symbol_is_rel_data id ofs then begin
let tmp = temp_for_vstore src in
emit (Paddis(tmp, GPR0, Csymbol_rel_high(id, ofs)));
expand_builtin_vstore_common chunk tmp (Csymbol_rel_low(id, ofs)) src