From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,81cef591a840aa2c,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2002-06-29 14:19:02 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!kibo.news.demon.net!demon!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: Falk Hueffner Newsgroups: comp.sys.dec Subject: Alpha Assembly: Why does cc generate xor sp,zero,sp? Date: 29 Jun 2002 23:18:24 +0200 Organization: T-Online Sender: falk@localhost Message-ID: <87vg814wdb.fsf@student.uni-tuebingen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.t-online.com 1025385511 03 15557 Dk1FbVzbS5AIyT 020629 21:18:31 X-Complaints-To: abuse@t-online.com X-Sender: 520046482682-0001@t-dialin.net X-Face: >Q)4Pn.JVfRz{G(G_eIkykbZGG\)2mk8:5a"{^Mk07iC#F.t2L7h|]{*cFg$GEPDdun~+UTjG(^4z<_Ksw%L-\w0xDmUR~int conversions on ev5, the Compaq C compiler generates code like 30: e0 05 e0 5b cvttq/c $f0,$f0 34: 00 00 1e 9c stt $f0,0(sp) 38: 9e 04 fe 47 cmoveq zero,sp,sp 3c: 00 00 fe 2f unop 40: 00 00 1e a4 ldq v0,0(sp) or 30: 00 00 1c 88 lds $f0,0(at) 34: 00 14 00 5a addt $f16,$f0,$f0 38: e0 05 e0 5b cvttq/c $f0,$f0 3c: 00 00 1e 9c stt $f0,0(sp) 40: 1e 08 df 47 xor sp,zero,sp 44: 00 00 1e a4 ldq v0,0(sp) Now what is this fiddling with the stack pointer doing? Does it avoid the replay trap? The HRM says: "If the load instruction is scheduled to issue two cycles after the store instruction, then it will be issue-stalled for one cycle." Does the xor avoid this cycle? -- Falk