/* Div.java
{{IS_NOTE
Purpose:
Description:
History:
Tue Dec 13 11:42:25 2005, Created by tomyeh
}}IS_NOTE
Copyright (C) 2005 Potix Corporation. All Rights Reserved.
{{IS_RIGHT
This
/* Div.java
{{IS_NOTE
Purpose:
Description:
History:
Fri Dec 30 17:49:49 2005, Created by tomyeh
}}IS_NOTE
Copyright (C) 2005 Potix Corporation. All Rights Reserved.
{{IS_RIGHT
This
//===========================================================================
//
// div.cxx
//
// ISO C implementation for div()/ldiv() utility functions
//
//===============================
/* div.c - div file for stdlib */
/* Copyright 1992-2001 Wind River Systems, Inc. */
/*
modification history
--------------------
01g,25sep01,gls fixed div_r to check for negative numerator (SPR #
#objdump: -dr --prefix-addresses -mmips:4000
#name: MIPS div
#source: div.s
# Test the div macro.
.*: +file format .*mips.*
Disassembly of section .text:
0+0000 ]*> div zero,a0,a1
0+0004 ]*
#objdump: -dr --prefix-addresses -mmips:4000
#as: -mcpu=r4000
#name: MIPS div
# Test the div macro.
.*: +file format .*mips.*
Disassembly of section .text:
0+0000 ]*> div zero,a0,a1
0+0004
# Source file used to test the div macro.
foo:
div $0,$4,$5
div $4,$5
div $4,$5,$6
div $4,1
div $4,$5,1
div $4,-1
div $4,$5,-1
div $4,2
div $4,$5,2
div $4,0x8000
div $4,$5,0x8000
div $4,-0