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/] [h8300/] [cmpsi2.s] - Rev 215

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

# 1 "libgcc1.S"
;; libgcc1 routines for the Hitachi H8/300 cpu.
;; Contributed by Steve Chamberlain.
;; sac@cygnus.com
	.section .text
	.align 2
	.global ___cmpsi2
___cmpsi2:
	cmp.w	r2 ,r0 
	bne	.L2
	cmp.w	r3 ,r1 
	bne	.L2
	mov.w	#1,r0 
	rts
.L2:
	cmp.w	r0 ,r2 
	bgt	.L4
	bne	.L3
	cmp.w	r1 ,r3 
	bls	.L3
.L4:
	sub.w	r0 ,r0 
	rts
.L3:
	mov.w	#2,r0 
.L5:
	rts
	.end
 

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.