From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10f8a1,c95fd329226ae099 X-Google-Attributes: gid10f8a1,public X-Google-Thread: 1164f8,c95fd329226ae099 X-Google-Attributes: gid1164f8,public X-Google-Thread: 102b75,b29bd286830e0ed8 X-Google-Attributes: gid102b75,public From: lfm@pgroup.com (Larry Meadows) Subject: Re: DEC RIP Date: 1998/02/12 Message-ID: <6c08e8$lpm@pacific.pgroup.com>#1/1 X-Deja-AN: 324615584 References: <34D02C2C.131E@EasyInternet.net> <6btivi$hna@news.or.intel.com> Organization: The Portland Group, Inc. Newsgroups: comp.arch,comp.sys.dec,vmsnet.alpha Reid Tatge writes: >> But you can do this anyway, with something like the Alpha >> architecture, provided you have enough registers to store the >> intermediate results of both branches. You just go ahead and >> compute both sides of the branch, and at the point where you >> know that your original condition will have been resolved, you >> ditch one half or the other. That could be with a conditional >> move if only one value is involved, or a branch. I'm afraid >> that I don't see how predication helps at all, really. Sorry, I'm not responding to the right post, I missed the original poster. But another important reason for predication is to avoid exceptions. You can't compute both sides of the branch in general, because one of the sides might have been guarded by something that avoided an exception. With predication the hardware doesn't cause exceptions on the 'false' side of the branch, whereas withh CMOV it does, even though the result is never used. Also, predication is really cool for handling setup and shutdown in s/w pipelined loops -- anybody remember Cydrome? lfm