diff options
| author | David Chase <drchase@google.com> | 2025-09-19 13:07:59 -0400 |
|---|---|---|
| committer | David Chase <drchase@google.com> | 2025-09-26 13:11:10 -0700 |
| commit | 25c36b95d1523f22d4c46ec237acc03e00540e0a (patch) | |
| tree | d96c9994fe212ab4d5a2f11d62bd13f4b340365d /src/runtime/panic.go | |
| parent | f0e281e693685954df71374c9a9fb856e8745519 (diff) | |
| download | go-25c36b95d1523f22d4c46ec237acc03e00540e0a.tar.xz | |
[dev.simd] simd, cmd/compile: add 128 bit select-from-pair
Using this name until a better one appears:
x.Select128FromPair(3, 2, y)
Includes test for constant and variable case.
Checks for unexpected immediates (using the zeroing flag,
which is not supported for this intrinsic) and panics.
Change-Id: I9249475d6572968c127b4ee9e00328d717c07578
Reviewed-on: https://go-review.googlesource.com/c/go/+/705496
Reviewed-by: Junyang Shao <shaojunyang@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/runtime/panic.go')
| -rw-r--r-- | src/runtime/panic.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/runtime/panic.go b/src/runtime/panic.go index 8c91c9435a..d7bce70fe5 100644 --- a/src/runtime/panic.go +++ b/src/runtime/panic.go @@ -341,6 +341,13 @@ func panicmemAddr(addr uintptr) { panic(errorAddressString{msg: "invalid memory address or nil pointer dereference", addr: addr}) } +var simdImmError = error(errorString("out-of-range immediate for simd intrinsic")) + +func panicSimdImm() { + panicCheck2("simd immediate error") + panic(simdImmError) +} + // Create a new deferred function fn, which has no arguments and results. // The compiler turns a defer statement into a call to this. func deferproc(fn func()) { |
