Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arm64: FP SIMD arithmetic/rounding instructions #634

Merged
merged 1 commit into from
Jun 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions internal/asm/arm64/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,36 @@ const (
FCMGT
// FCMGE is the FCMGE(register) instruction https://developer.arm.com/documentation/ddi0596/2021-12/SIMD-FP-Instructions/FCMGE--register---Floating-point-Compare-Greater-than-or-Equal--vector--?lang=en
FCMGE
// VFMUL is the FMUL(vector) instruction https://developer.arm.com/documentation/ddi0596/2021-12/SIMD-FP-Instructions/FMUL--vector---Floating-point-Multiply--vector--?lang=en
// Note: prefixed by V to distinguish from the non-vector variant.
VFMUL
// VFDIV is the FDIV(vector) instruction https://developer.arm.com/documentation/ddi0596/2021-12/SIMD-FP-Instructions/FDIV--vector---Floating-point-Divide--vector--?lang=en
// Note: prefixed by V to distinguish from the non-vector variant.
VFDIV
// VFSQRT is the FSQRT(vector) instruction https://developer.arm.com/documentation/ddi0596/2021-12/SIMD-FP-Instructions/FSQRT--vector---Floating-point-Square-Root--vector--?lang=en
// Note: prefixed by V to distinguish from the non-vector variant.
VFSQRT
// VFMIN is the FMIN(vector) instruction https://developer.arm.com/documentation/ddi0596/2021-12/SIMD-FP-Instructions/FMIN--vector---Floating-point-minimum--vector--?lang=en
// Note: prefixed by V to distinguish from the non-vector variant.
VFMIN
// VFMAX is the FMAX(vector) instruction https://developer.arm.com/documentation/ddi0596/2021-12/SIMD-FP-Instructions/FMAX--vector---Floating-point-Maximum--vector--?lang=en
// Note: prefixed by V to distinguish from the non-vector variant.
VFMAX
// VFABS is the FABS(vector) instruction https://developer.arm.com/documentation/ddi0596/2021-12/SIMD-FP-Instructions/FABS--vector---Floating-point-Absolute-value--vector--?lang=en
// Note: prefixed by V to distinguish from the non-vector variant.
VFABS
// VFRINTP is the FRINTP(vector) instruction https://developer.arm.com/documentation/ddi0596/2021-12/SIMD-FP-Instructions/FRINTP--vector---Floating-point-Round-to-Integral--toward-Plus-infinity--vector--?lang=en
// Note: prefixed by V to distinguish from the non-vector variant.
VFRINTP
// VFRINTM is the FRINTM(vector) instruction https://developer.arm.com/documentation/ddi0596/2021-12/SIMD-FP-Instructions/FRINTM--vector---Floating-point-Round-to-Integral--toward-Minus-infinity--vector--?lang=en
// Note: prefixed by V to distinguish from the non-vector variant.
VFRINTM
// VFRINTZ is the FRINTZ(vector) instruction https://developer.arm.com/documentation/ddi0596/2021-12/SIMD-FP-Instructions/FRINTZ--vector---Floating-point-Round-to-Integral--toward-Zero--vector--?lang=en
// Note: prefixed by V to distinguish from the non-vector variant.
VFRINTZ
// VFRINTN is the FRINTN(vector) instruction https://developer.arm.com/documentation/ddi0596/2021-12/SIMD-FP-Instructions/FRINTN--vector---Floating-point-Round-to-Integral--to-nearest-with-ties-to-even--vector--?lang=en
// Note: prefixed by V to distinguish from the non-vector variant.
VFRINTN

// instructionEnd is always placed at the bottom of this iota definition to be used in the test.
instructionEnd
Expand Down Expand Up @@ -1204,6 +1234,26 @@ func InstructionName(i asm.Instruction) string {
return "FCMGT"
case FCMGE:
return "FCMGE"
case VFMUL:
return "VFMUL"
case VFDIV:
return "VFDIV"
case VFSQRT:
return "VFSQRT"
case VFMIN:
return "VFMIN"
case VFMAX:
return "VFMAX"
case VFABS:
return "VFABS"
case VFRINTP:
return "VFRINTP"
case VFRINTM:
return "VFRINTM"
case VFRINTZ:
return "VFRINTZ"
case VFRINTN:
return "VFRINTN"
}
panic(fmt.Errorf("unknown instruction %d", i))
}
Loading