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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.20.1/] [gas/] [testsuite/] [gas/] [score/] [b.s] - Rev 205

Compare with Previous | Blame | View Log

/*
 * test relax
 * b <-> b! : jump range must be in 8 bit, only 32b -> 16b
 
 * Author: ligang
 */
 
.macro tran insn32, insn16
/* This block transform 32b instruction to 16b. */
.align 4
 
  \insn32               #32b -> 16b
  \insn16
 
  \insn32               #32b -> 16b
  \insn32               #32b -> 16b
 
  \insn16      
  \insn32               #32b -> 16b
 
  \insn32               #No transform
  add r18, r20, r24
 
.endm
 
L1:
 
  tran "b L1", "b! L1"
  #tran "b 0x8", "b! 0x8"
 
 

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.