From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,90052d44e4de52f X-Google-Attributes: gidfee84,public From: koehler@eisner.decus.org (Bob Koehler) Subject: Re: Has the Alpha an integer DIV instruction ? Date: 1999/11/29 Message-ID: <1999Nov29.103837.1@eisner>#1/1 X-Deja-AN: 554454049 References: <81u04d$ojq$1@fleetstreet.Austria.EU.net> X-Trace: news.decus.org 943889922 4419 KOEHLER [216.44.122.34] Organization: HST Flight Software Newsgroups: comp.unix.osf.osf1 In article <81u04d$ojq$1@fleetstreet.Austria.EU.net>, Joe Leherbauer writes: > I always thought it doesn't. > > But GCC emits a "divqu" instruction for this code: > > unsigned long a, b, c; > c = a / b; It does not. But GCC can claim it's generating just about anything. DEC Fortran claims to generate .displ, even though there's no such directive. VAX Macro recognizes popl and generates the code that used to be in the macro library, but doesn't have to look up the macro (it's built into the assembler, and it's no longer in the macro library). What opcode does it actually assemble to? (Try running /debug and displaying the INST display in screen mode). There are several instruction-like macros in starlet.mlb and lib.mlb, and the assembler recognize several stylized instruction forms, but not divqu. GCC may be running code through it's own assembler (gas?), but more likley it's generating the code internally. It's almost certainly not dependent on the formerly additional cost Macro 64 assembler. ---------------------------------------------------------------------- Bob Koehler | Computer Sciences Corporation Hubble Space Telescope Payload | Federal Sector, Civil Group Flight Software Team | please remove ".aspm" when replying