From 34a7ec51c1f1bbfeb973f8e295ac81b65c70251c Mon Sep 17 00:00:00 2001 From: Bernhard Schommer Date: Tue, 15 Mar 2016 11:00:24 +0100 Subject: Revert "Removed unused parameter from is_small/rel_data." This reverts commit bac2a0854ea51217690bc6f225da62053ed7ac06. --- powerpc/Asmexpand.ml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'powerpc/Asmexpand.ml') 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 -- cgit