Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!udel!mmdf From: HBO043%DJUKFA11.BITNET@cunyvm.cuny.edu (Christoph van Wuellen) Newsgroups: comp.os.minix Subject: 386 assembler question Message-ID: <40219@nigel.ee.udel.edu> Date: 29 Dec 90 09:47:38 GMT Sender: mmdf@ee.udel.edu Lines: 11 I have two problems with my 386 compiler: - is test[bwl] %reg,%reg functionally equivalent to cmp[bwl] $0,%reg? (so the peephole optimizer changes cmp $0 to test - is clr[bwl] a generic 386 instruction? Sun 'as' knows clr, so I changed mov $0 to clr, but gas (1.37) does not know the clr instruction. the peephole optimizer changes mov $0 to clr, but if it is all the same, it is not worth it. C.v.W.