From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id 16C473EB1C for ; Thu, 19 Sep 2002 06:52:52 -0400 (EDT) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id g8JAqpk24062 for axp-list@listman.redhat.com; Thu, 19 Sep 2002 06:52:51 -0400 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id g8JAqph24017 for ; Thu, 19 Sep 2002 06:52:51 -0400 Received: from mailout04.sul.t-online.com (mailout04.sul.t-online.com [194.25.134.18]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id g8JAZZi13431 for ; Thu, 19 Sep 2002 06:35:35 -0400 Received: from fwd08.sul.t-online.de by mailout04.sul.t-online.com with smtp id 17ryvR-0006On-02; Thu, 19 Sep 2002 12:52:49 +0200 Received: from juist (520046482682-0001@[80.131.83.113]) by fmrl08.sul.t-online.com with esmtp id 17ryvK-1ovsKOC; Thu, 19 Sep 2002 12:52:42 +0200 Received: from falk by juist with local (Exim 3.36 #1 (Debian)) id 17ryvI-0000D8-00 for ; Thu, 19 Sep 2002 12:52:40 +0200 X-Face: >Q)4Pn.JVfRz{G(G_eIkykbZGG\)2mk8:5a"{^Mk07iC#F.t2L7h|]{*cFg$GEPDdun~+UTjG(^4z<_Ksw%L-\w0xDmUR~ From: Falk Hueffner Date: 19 Sep 2002 12:52:39 +0200 In-Reply-To: <3D89991D.8070902@coruscant.htam.net> Message-ID: <87d6ratfns.fsf@student.uni-tuebingen.de> User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.5 (broccoli) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Sender: 520046482682-0001@t-dialin.net X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: Mathieu MILLET writes: > I'am having trouble compiling MPLayer that give the following messages : > > /tmp/ccynnHuS.s: Assembler messages: > /tmp/ccynnHuS.s:67: Error: opcode `unpkbw' not supported for target ev56 Heh, it's my fault :) Please try this patch: diff -u -p -r1.54 Makefile --- Makefile 5 Sep 2002 10:06:20 -0000 1.54 +++ Makefile 19 Sep 2002 10:44:17 -0000 @@ -69,7 +69,12 @@ endif ifeq ($(TARGET_ARCH_ALPHA),yes) OBJS += alpha/dsputil_alpha.o alpha/mpegvideo_alpha.o alpha/motion_est_alpha.o ASM_OBJS += alpha/dsputil_alpha_asm.o -CFLAGS += -Wa,-mpca56 -finline-limit=8000 -fforce-addr -freduce-all-givs +CFLAGS += -finline-limit=8000 -fforce-addr -freduce-all-givs -mcpu=ev4 +alpha/motion_est_alpha.o: alpha/motion_est_alpha.c + cpu=`echo "$(CFLAGS)" | sed 's,.*-mcpu=\([a-zA-Z0-9]*\).*,\1,'`; \ + case x"$$cpu" in xev[45]*) newcpu=pca56;; x) newcpu=pca56;; *) newcpu=$cpu;; esac; \ + cflags=`echo $(CFLAGS) | sed s,$$cpu,$$newcpu,`; \ + $(CC) $$cflags -c -o $@ $< endif ifeq ($(TARGET_ARCH_POWERPC),yes) (ugh, ugly, but I cannot think of a better way...) If you want to optimize these routines for ev56, you could try these: inline uint64_t perr_emu(uint64_t x, uint64_t y) { /* 14 cycles on ev5 */ uint64_t bytemask, c, minx, miny, minb, maxb, d; bytemask = zapnot(-1, 0x55); // 0x00ff00ff00ff00ff c = cmpbge(x, y); minx = zap(x, c); miny = zapnot(y, c); minb = minx | miny; maxb = minb ^ (x ^ y); d = maxb - minb; d = ((d & ~bytemask) >> 8) + (d & bytemask); d += d >> 32; d += d >> 16; d &= 0xffff; return d; } uint64_t unpkbw_emu(uint64_t x) { /* 7 cycles */ uint64_t t; x = zapnot(x, 0x0f); /* 0000000004030201 */ x |= x << 16; /* 00000403??030201 */ t = zapnot(x, 0x11); /* 0000000300000001 */ x <<= 8; /* 0004030603020100 */ x = zapnot(x, 0x44); /* 0004000000020000 */ return t | x; } -- Falk