Date: Tue, 9 Jan 2001 22:04:03 -0800 (PST) From: Matthew Jacob <mjacob@feral.com> To: Warner Losh <imp@harmony.village.org> Cc: Matt Jacob <mjacob@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/alpha/include bus.h Message-ID: <Pine.BSF.4.21.0101092200070.2888-100000@beppo.feral.com> In-Reply-To: <200101100441.f0A4f2s58670@harmony.village.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> In message <200101091817.f09IHng10622@freefall.freebsd.org> Matt Jacob writes:
> : me that BUS_SPACE_UNRESTRICTED should b ~0UL, not ~0.
>
> Would this impact the 10E6 uses of ~0 in the bus_alloc_resource calls
> we have?
int foo()
{
bar(~0);
}
int zoo()
{
bar1(~0UL);
}
yields (for alpha, with -O):
.file 1 "x.c"
.version "01.01"
.set noat
gcc2_compiled.:
.text
.align 5
.globl foo
.ent foo
foo:
.frame $30,16,$26,0
.mask 0x4000000,-16
ldgp $29,0($27)
$foo..ng:
lda $30,-16($30)
stq $26,0($30)
.prologue 1
lda $16,-1
jsr $26,bar
ldgp $29,0($26)
ldq $26,0($30)
lda $30,16($30)
ret $31,($26),1
.end foo
.align 5
.globl zoo
.ent zoo
zoo:
.frame $30,16,$26,0
.mask 0x4000000,-16
ldgp $29,0($27)
$zoo..ng:
lda $30,-16($30)
stq $26,0($30)
.prologue 1
lda $16,-1
jsr $26,bar1
ldgp $29,0($26)
ldq $26,0($30)
lda $30,16($30)
ret $31,($26),1
.end zoo
.ident "GCC: (GNU) 2.95.3 20010101 (prerelease)"
Sorta looks the same to me....
-matt
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0101092200070.2888-100000>
