File: hack.h

package info (click to toggle)
golang-golang-x-arch 0.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,932 kB
  • sloc: ansic: 1,975; makefile: 59
file content (56 lines) | stat: -rw-r--r-- 1,104 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Copyright 2024 The Go Authors.  All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// This file requires gcc and binutils with -march=z16 support.
// s390xutil runs a series of commands like:
//    go run map.go -fmt=asm ../s390x.csv > asm.S
//    /usr/bin/gcc -c asm.S -march=z16
//    /usr/bin/objdump -d asm.o
// to create the file decode_generated.txt used to verify the disassembler.
//
// Note, the Go disassembler is not expected to support every extended
// mnemonic, but it should support those which frequently show up in object
// files compiled by the Go toolchain.


#define R1 8
#define R2 0
#define R3 0

#define X2 2

#define L1 4
#define L2 4

#define B1 2
#define B2 1
#define B3 6
#define B4 8

#define D1 6
#define D2 11
#define D3 182
#define D4 205

#define V1 18
#define V2 3
#define V3 5
#define V4 8

#define I 124
#define I1 12
#define I2 8
#define I3 9
#define I4 105
#define I5 18

#define RI2 0
#define RI3 294
#define RI4 -168

#define M1 7
#define M3 3
#define M4 1
#define M5 9
#define M6 11