From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 20484 invoked from network); 6 Jan 1999 04:49:56 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 6 Jan 1999 04:49:56 -0000 Received: from julia.creaholic.com (euclid.creaholic.com [194.209.56.210]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id XAA31391 for ; Tue, 5 Jan 1999 23:31:00 -0500 Received: from amazing.ch ([194.209.56.213]) by julia.creaholic.com (Post.Office MTA v3.1.2 release (PO205-101c) ID# 0-44790U100L100S0) with SMTP id AAA47036 for ; Wed, 6 Jan 1999 05:31:01 +0100 Received: by amazing.ch id <6o8h@amazing.ch>; Wed, 06 Jan 1999 05:30:00 GMT To: axp-list@redhat.com Organization: sometimes private, sometimes creaholic sa From: axp@amazing.ch (Christoph Dworzak) Subject: asm Message-Id: <2786b60e.u10t12e.e8910-axp@amazing.ch> Date: Wed, 06 Jan 1999 05:30:00 GMT Hi I have still some troubles to understand how the alpha-cpu issues instructions. Maybe some kind soul could help me with this example? /* M[0] = 0xaaaaaaaaaaaaaaaa; M[1] = 0xcccccccccccccccc; M[2] = 0xf0f0f0f0f0f0f0f0; */ /* M[3] = 0xff00ff00ff00ff00; M[4] = 0xffff0000ffff0000; M[5] = 0xffffffff00000000; */ lda $0,-1 zap $0,0x0f,$6 zap $0,0x33,$5 zap $0,0x55,$4 srl $4,4,$3 stq $6,552($30) xor $4,$3,$3 stq $5,544($30) srl $3,2,$2 stq $4,536($30) xor $3,$2,$2 stq $3,528($30) srl $2,1,$1 stq $2,520($30) xor $2,$1,$1 stq $1,512($30) How many cycles would this take (on a 21164) and which instruction do get paired together? How would you optimize it? Bye dworz