.text
.global FUNCNAME
.type FUNCNAME, @function
.p2align 5
FUNCNAME:
{
p0 = cmp.gtu(bytes,
if (!p0.new) jump:nt .Ldone
r3 = or(dst,src)
r4 = xor(dst,src)
}
{
p1 = cmp.gtu(bytes,
p0 = bitsclr(r3,
if (!p0.new) jump:nt .Loop_not_aligned_8
src_dst_sav = combine(src,dst)
}
{
loopcount = lsr(bytes,
if (!p1) jump .Lsmall
}
p3=sp1loop0(.Loop8,loopcount)
.Loop8:
8080:
8180:
{
if (p3) memd(dst++
d_dbuf = memd(src++
}:endloop0
8190:
{
memd(dst++
bytes -= asl(loopcount,
jump .Lsmall
}
.Loop_not_aligned_8:
{
p0 = bitsclr(r4,
if (p0.new) jump:nt .Lalign
}
{
p0 = bitsclr(r3,
if (!p0.new) jump:nt .Loop_not_aligned_4
p1 = cmp.gtu(bytes,
}
{
if (!p1) jump .Lsmall
loopcount = lsr(bytes,
}
p3=sp1loop0(.Loop4,loopcount)
.Loop4:
4080:
4180:
{
if (p3) memw(dst++
w_dbuf = memw(src++
}:endloop0
4190:
{
memw(dst++
bytes -= asl(loopcount,
jump .Lsmall
}
.Loop_not_aligned_4:
{
p0 = bitsclr(r3,
if (!p0.new) jump:nt .Loop_not_aligned
p1 = cmp.gtu(bytes,
}
{
if (!p1) jump .Lsmall
loopcount = lsr(bytes,
}
p3=sp1loop0(.Loop2,loopcount)
.Loop2:
2080:
2180:
{
if (p3) memh(dst++
w_dbuf = memuh(src++
}:endloop0
2190:
{
memh(dst++
bytes -= asl(loopcount,
jump .Lsmall
}
.Loop_not_aligned:
p3=sp1loop0(.Loop1,bytes)
.Loop1:
1080:
1180:
{
if (p3) memb(dst++
w_dbuf = memub(src++
}:endloop0
1190:
{
memb(dst) = w_dbuf
jumpr r31
r0 =
}
.Lsmall:
{
p0 = cmp.gtu(bytes,
if (p0.new) jump:nt .Loop_not_aligned
}
.Ldone:
{
r0 =
jumpr r31
}
.falign
.Lalign:
1000:
{
if (p0.new) w_dbuf = memub(src)
p0 = tstbit(src,
if (!p1) jump .Lsmall
}
1100:
{
if (p0) memb(dst++
if (p0) bytes = add(bytes,
if (p0) src = add(src,
}
2000:
{
if (p0.new) w_dbuf = memuh(src)
p0 = tstbit(src,
if (!p1) jump .Lsmall
}
2100:
{
if (p0) memh(dst++
if (p0) bytes = add(bytes,
if (p0) src = add(src,
}
4000:
{
if (p0.new) w_dbuf = memw(src)
p0 = tstbit(src,
if (!p1) jump .Lsmall
}
4100:
{
if (p0) memw(dst++
if (p0) bytes = add(bytes,
if (p0) src = add(src,
jump FUNCNAME
}
.size FUNCNAME,.-FUNCNAME