OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [binutils-2.20.1/] [gas/] [testsuite/] [gas/] [score/] [shift_32.s] - Rev 853

Go to most recent revision | Compare with Previous | Blame | View Log

/*
 * tests for shift instruction relaxation
 *
 * Author: libin
 */
 
.include "relaxation_macro.h"
 
.macro _shift_op_pattern insn insn1
  insn_32 "\insn r0,  r0,  0"
  insn_32 "\insn r0,  r0,  31"
  insn_32 "\insn r15, r15, 0"
  insn_32 "\insn r15, r15, 31"
 
  tran_16_32 "\insn! r0, 0", "\insn r0, r0, 0"
 
  /* shouldn't alter */
  insn_32 "\insn1 r0,  r0, 0"
  insn_32 "\insn  r0,  r2, 0"
  insn_32 "\insn  r16,  r16, 0"
.endm
 
.text
/* slli/srli rD,rA,Imm5 -> slli!/srli! rD,Imm5 */
_shift_op_pattern "slli", "slli.c"
_shift_op_pattern "srli", "srli.c"

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.