diff options
| author | 2025-03-09 17:47:56 +0100 | |
|---|---|---|
| committer | 2025-12-01 22:08:04 +0100 | |
| commit | b1af8fd87760b34e3ff2fd3bda38f211815a0473 (patch) | |
| tree | 9317fad1a7ec298d7a8d2678e4e422953bbc6f33 /vendor/github.com/twitchyliquid64/golang-asm/asm/arch/s390x.go | |
| parent | [chore] update URLs to forked source (diff) | |
| download | gotosocial-b1af8fd87760b34e3ff2fd3bda38f211815a0473.tar.xz | |
[chore] remove vendor
Diffstat (limited to 'vendor/github.com/twitchyliquid64/golang-asm/asm/arch/s390x.go')
| -rw-r--r-- | vendor/github.com/twitchyliquid64/golang-asm/asm/arch/s390x.go | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/vendor/github.com/twitchyliquid64/golang-asm/asm/arch/s390x.go b/vendor/github.com/twitchyliquid64/golang-asm/asm/arch/s390x.go deleted file mode 100644 index 1e33f1e32..000000000 --- a/vendor/github.com/twitchyliquid64/golang-asm/asm/arch/s390x.go +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright 2016 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 encapsulates some of the odd characteristics of the -// s390x instruction set, to minimize its interaction -// with the core of the assembler. - -package arch - -import ( - "github.com/twitchyliquid64/golang-asm/obj/s390x" -) - -func jumpS390x(word string) bool { - switch word { - case "BRC", - "BC", - "BCL", - "BEQ", - "BGE", - "BGT", - "BL", - "BLE", - "BLEU", - "BLT", - "BLTU", - "BNE", - "BR", - "BVC", - "BVS", - "BRCT", - "BRCTG", - "CMPBEQ", - "CMPBGE", - "CMPBGT", - "CMPBLE", - "CMPBLT", - "CMPBNE", - "CMPUBEQ", - "CMPUBGE", - "CMPUBGT", - "CMPUBLE", - "CMPUBLT", - "CMPUBNE", - "CRJ", - "CGRJ", - "CLRJ", - "CLGRJ", - "CIJ", - "CGIJ", - "CLIJ", - "CLGIJ", - "CALL", - "JMP": - return true - } - return false -} - -func s390xRegisterNumber(name string, n int16) (int16, bool) { - switch name { - case "AR": - if 0 <= n && n <= 15 { - return s390x.REG_AR0 + n, true - } - case "F": - if 0 <= n && n <= 15 { - return s390x.REG_F0 + n, true - } - case "R": - if 0 <= n && n <= 15 { - return s390x.REG_R0 + n, true - } - case "V": - if 0 <= n && n <= 31 { - return s390x.REG_V0 + n, true - } - } - return 0, false -} |
