/[pcre]/code/trunk/sljit/sljitNativeSPARC_32.c
ViewVC logotype

Diff of /code/trunk/sljit/sljitNativeSPARC_32.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1194 by zherczeg, Sun Oct 28 05:22:32 2012 UTC revision 1195 by zherczeg, Thu Nov 1 15:21:27 2012 UTC
# Line 24  Line 24 
24   * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.   * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25   */   */
26    
27  static int load_immediate(struct sljit_compiler *compiler, int dst, sljit_w imm)  static sljit_si load_immediate(struct sljit_compiler *compiler, sljit_si dst, sljit_sw imm)
28  {  {
29          if (imm <= SIMM_MAX && imm >= SIMM_MIN)          if (imm <= SIMM_MAX && imm >= SIMM_MIN)
30                  return push_inst(compiler, OR | D(dst) | S1(0) | IMM(imm), DR(dst));                  return push_inst(compiler, OR | D(dst) | S1(0) | IMM(imm), DR(dst));
# Line 35  static int load_immediate(struct sljit_c Line 35  static int load_immediate(struct sljit_c
35    
36  #define ARG2(flags, src2) ((flags & SRC2_IMM) ? IMM(src2) : S2(src2))  #define ARG2(flags, src2) ((flags & SRC2_IMM) ? IMM(src2) : S2(src2))
37    
38  static SLJIT_INLINE int emit_single_op(struct sljit_compiler *compiler, int op, int flags,  static SLJIT_INLINE sljit_si emit_single_op(struct sljit_compiler *compiler, sljit_si op, sljit_si flags,
39          int dst, int src1, sljit_w src2)          sljit_si dst, sljit_si src1, sljit_sw src2)
40  {  {
41          SLJIT_COMPILE_ASSERT(ICC_IS_SET == SET_FLAGS, icc_is_set_and_set_flags_must_be_the_same);          SLJIT_COMPILE_ASSERT(ICC_IS_SET == SET_FLAGS, icc_is_set_and_set_flags_must_be_the_same);
42    
# Line 139  static SLJIT_INLINE int emit_single_op(s Line 139  static SLJIT_INLINE int emit_single_op(s
139          return SLJIT_SUCCESS;          return SLJIT_SUCCESS;
140  }  }
141    
142  static SLJIT_INLINE int emit_const(struct sljit_compiler *compiler, int dst, sljit_w init_value)  static SLJIT_INLINE sljit_si emit_const(struct sljit_compiler *compiler, sljit_si dst, sljit_sw init_value)
143  {  {
144          FAIL_IF(push_inst(compiler, SETHI | D(dst) | ((init_value >> 10) & 0x3fffff), DR(dst)));          FAIL_IF(push_inst(compiler, SETHI | D(dst) | ((init_value >> 10) & 0x3fffff), DR(dst)));
145          return push_inst(compiler, OR | D(dst) | S1(dst) | IMM_ARG | (init_value & 0x3ff), DR(dst));          return push_inst(compiler, OR | D(dst) | S1(dst) | IMM_ARG | (init_value & 0x3ff), DR(dst));
# Line 154  SLJIT_API_FUNC_ATTRIBUTE void sljit_set_ Line 154  SLJIT_API_FUNC_ATTRIBUTE void sljit_set_
154          SLJIT_CACHE_FLUSH(inst, inst + 2);          SLJIT_CACHE_FLUSH(inst, inst + 2);
155  }  }
156    
157  SLJIT_API_FUNC_ATTRIBUTE void sljit_set_const(sljit_uw addr, sljit_w new_constant)  SLJIT_API_FUNC_ATTRIBUTE void sljit_set_const(sljit_uw addr, sljit_sw new_constant)
158  {  {
159          sljit_ins *inst = (sljit_ins*)addr;          sljit_ins *inst = (sljit_ins*)addr;
160    

Legend:
Removed from v.1194  
changed lines
  Added in v.1195

  ViewVC Help
Powered by ViewVC 1.1.5