Lines Matching defs:ac

4114 init_alignment_context (struct alignment_context *ac, rtx mem,
4117 ac->shift = GEN_INT (GET_MODE_SIZE (SImode) - GET_MODE_SIZE (mode));
4118 ac->aligned = (MEM_ALIGN (mem) >= GET_MODE_BITSIZE (SImode));
4120 if (ac->aligned)
4121 ac->memsi = adjust_address (mem, SImode, 0); /* Memory is aligned. */
4135 ac->memsi = gen_rtx_MEM (SImode, align);
4136 MEM_VOLATILE_P (ac->memsi) = MEM_VOLATILE_P (mem);
4137 set_mem_alias_set (ac->memsi, ALIAS_SET_MEMORY_BARRIER);
4138 set_mem_align (ac->memsi, GET_MODE_BITSIZE (SImode));
4145 ac->shift = expand_simple_binop (SImode, MINUS, ac->shift, byteoffset,
4150 ac->shift = expand_simple_binop (SImode, MULT, ac->shift, GEN_INT (BITS_PER_UNIT),
4153 ac->modemask = expand_simple_binop (SImode, ASHIFT,
4154 GEN_INT (GET_MODE_MASK (mode)), ac->shift,
4156 ac->modemaski = expand_simple_unop (SImode, NOT, ac->modemask, NULL_RTX, 1);
4168 struct alignment_context ac;
4177 init_alignment_context (&ac, mem, mode);
4180 if (!(ac.aligned && MEM_P (cmp)))
4181 cmp = s390_expand_mask_and_shift (cmp, mode, ac.shift);
4182 if (!(ac.aligned && MEM_P (new)))
4183 new = s390_expand_mask_and_shift (new, mode, ac.shift);
4186 val = expand_simple_binop (SImode, AND, ac.memsi, ac.modemaski,
4197 if (ac.aligned && MEM_P (cmp))
4205 if (ac.aligned && MEM_P (new))
4215 s390_emit_jump (csend, s390_emit_compare_and_swap (EQ, res, ac.memsi,
4219 resv = expand_simple_binop (SImode, AND, res, ac.modemaski,
4229 convert_move (target, expand_simple_binop (SImode, LSHIFTRT, res, ac.shift,
4243 struct alignment_context ac;
4252 init_alignment_context (&ac, mem, mode);
4256 if (!(ac.aligned && code == SET && MEM_P (val)))
4257 val = s390_expand_mask_and_shift (val, mode, ac.shift);
4263 val = expand_simple_binop (SImode, XOR, val, ac.modemaski,
4267 cmp = force_reg (SImode, ac.memsi);
4280 val = expand_simple_binop (SImode, AND, val, ac.modemask,
4284 if (ac.aligned && MEM_P (val))
4288 new = expand_simple_binop (SImode, AND, new, ac.modemaski,
4301 new = expand_simple_binop (SImode, XOR, new, ac.modemask,
4311 ac.memsi, cmp, new));
4316 after ? new : cmp, ac.shift,