diff options
author | Bernhard Schommer <bernhardschommer@gmail.com> | 2016-03-11 08:48:31 +0100 |
---|---|---|
committer | Bernhard Schommer <bernhardschommer@gmail.com> | 2016-03-11 08:48:31 +0100 |
commit | bac2a0854ea51217690bc6f225da62053ed7ac06 (patch) | |
tree | 752e3b627d70450f544c182b06a70f803ef73965 /powerpc/Asmexpand.ml | |
parent | 7247e4bb85d50834983bc71e6415fe1bf065aa46 (diff) | |
download | compcert-kvx-bac2a0854ea51217690bc6f225da62053ed7ac06.tar.gz compcert-kvx-bac2a0854ea51217690bc6f225da62053ed7ac06.zip |
Removed unused parameter from is_small/rel_data.
The ofs parameter is no longer used. Adopted the proofs and ml
code using it.
Bug 18394
Diffstat (limited to 'powerpc/Asmexpand.ml')
-rw-r--r-- | powerpc/Asmexpand.ml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/powerpc/Asmexpand.ml b/powerpc/Asmexpand.ml index a6795030..917d4466 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 ofs then + if symbol_is_small_data id then expand_builtin_vload_common chunk GPR0 (Csymbol_sda(id, ofs)) res - else if symbol_is_rel_data id ofs then begin + else if symbol_is_rel_data id 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 ofs then + if symbol_is_small_data id then expand_builtin_vstore_common chunk GPR0 (Csymbol_sda(id, ofs)) src - else if symbol_is_rel_data id ofs then begin + else if symbol_is_rel_data id 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 |