~ubuntu-branches/ubuntu/vivid/golang/vivid

« back to all changes in this revision

Viewing changes to src/cmd/5a/a.y

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-08-20 14:06:23 UTC
  • mfrom: (14.1.23 saucy-proposed)
  • Revision ID: package-import@ubuntu.com-20130820140623-b414jfxi3m0qkmrq
Tags: 2:1.1.2-2ubuntu1
* Merge from Debian unstable (LP: #1211749, #1202027). Remaining changes:
  - 016-armhf-elf-header.patch: Use correct ELF header for armhf binaries.
  - d/control,control.cross: Update Breaks/Replaces for Ubuntu
    versions to ensure smooth upgrades, regenerate control file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
%token  <lval>  LTYPE6 LTYPE7 LTYPE8 LTYPE9 LTYPEA
53
53
%token  <lval>  LTYPEB LTYPEC LTYPED LTYPEE LTYPEF
54
54
%token  <lval>  LTYPEG LTYPEH LTYPEI LTYPEJ LTYPEK
55
 
%token  <lval>  LTYPEL LTYPEM LTYPEN LTYPEBX
 
55
%token  <lval>  LTYPEL LTYPEM LTYPEN LTYPEBX LTYPEPLD
56
56
%token  <lval>  LCONST LSP LSB LFP LPC
57
57
%token  <lval>  LTYPEX LR LREG LF LFREG LC LCREG LPSR LFCR
58
58
%token  <lval>  LCOND LS LAT
286
286
                outcode(AWORD, Always, &nullgen, NREG, &g);
287
287
        }
288
288
/*
289
 
 * MULL hi,lo,r1,r2
 
289
 * MULL r1,r2,(hi,lo)
290
290
 */
291
291
|       LTYPEM cond reg ',' reg ',' regreg
292
292
        {
293
293
                outcode($1, $2, &$3, $5.reg, &$7);
294
294
        }
295
295
/*
296
 
 * MULA hi,lo,r1,r2
 
296
 * MULA r1,r2,r3,r4: (r1*r2+r3) & 0xffffffff -> r4
 
297
 * MULAW{T,B} r1,r2,r3,r4
297
298
 */
298
299
|       LTYPEN cond reg ',' reg ',' reg ',' spreg
299
300
        {
300
 
                $7.type = D_REGREG;
 
301
                $7.type = D_REGREG2;
301
302
                $7.offset = $9;
302
303
                outcode($1, $2, &$3, $5.reg, &$7);
303
304
        }
304
305
/*
 
306
 * PLD
 
307
 */
 
308
|       LTYPEPLD oreg
 
309
        {
 
310
                outcode($1, Always, &$2, NREG, &nullgen);
 
311
        }
 
312
/*
305
313
 * END
306
314
 */
307
315
|       LTYPEE comma