| // Copyright 2019 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. |
| // bit mask values from /usr/include/bits/hwcap.h |
| has := func(featureMask uint) bool { |
| return hwCap&featureMask == featureMask |
| S390X.HasZARCH = has(hwcap_ZARCH) |
| S390X.HasSTFLE = has(hwcap_STFLE) |
| S390X.HasLDISP = has(hwcap_LDISP) |
| S390X.HasEIMM = has(hwcap_EIMM) |
| S390X.HasETF3EH = has(hwcap_ETF3EH) |
| S390X.HasDFP = has(hwcap_DFP) |
| S390X.HasMSA = has(hwcap_MSA) |
| S390X.HasVX = has(hwcap_VX) |
| S390X.HasVXE = has(hwcap_VXE) |