Revision bf8d8ded target-ppc/op_helper.c

b/target-ppc/op_helper.c
1972 1972
  for (index = ARRAY_SIZE(r->element)-1; index >= 0; index--)
1973 1973
#endif
1974 1974

  
1975
void helper_lvsl (ppc_avr_t *r, target_ulong sh)
1976
{
1977
    int i, j = (sh & 0xf);
1978

  
1979
    VECTOR_FOR_INORDER_I (i, u8) {
1980
        r->u8[i] = j++;
1981
    }
1982
}
1983

  
1984
void helper_lvsr (ppc_avr_t *r, target_ulong sh)
1985
{
1986
    int i, j = 0x10 - (sh & 0xf);
1987

  
1988
    VECTOR_FOR_INORDER_I (i, u8) {
1989
        r->u8[i] = j++;
1990
    }
1991
}
1992

  
1975 1993
void helper_vaddcuw (ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b)
1976 1994
{
1977 1995
    int i;

Also available in: Unified diff