aboutsummaryrefslogtreecommitdiff
path: root/src/simd/archsimd/_gen
diff options
context:
space:
mode:
authorCherry Mui <cherryyz@google.com>2025-12-19 14:48:59 -0500
committerCherry Mui <cherryyz@google.com>2025-12-19 14:39:20 -0800
commitbaa0ae3aaacfcef6ae04beba78a2d2b06776e423 (patch)
tree457a2e7b82f7cd1cc4992ca83e0bf214580319ac /src/simd/archsimd/_gen
parentd46c58debba9d194a98388984931645c3aed0e3e (diff)
downloadgo-baa0ae3aaacfcef6ae04beba78a2d2b06776e423.tar.xz
simd/archsimd: correct type and instruction for SaturateToUint8
It should be defined on unsigned types, not signed types, and use unsigned conversion instructions. Change-Id: I49694ccdf1d331cfde88591531c358d9886e83e6 Reviewed-on: https://go-review.googlesource.com/c/go/+/731500 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/simd/archsimd/_gen')
-rw-r--r--src/simd/archsimd/_gen/simdgen/ops/Converts/go.yaml6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/simd/archsimd/_gen/simdgen/ops/Converts/go.yaml b/src/simd/archsimd/_gen/simdgen/ops/Converts/go.yaml
index 64cd4cb24e..1d688b434d 100644
--- a/src/simd/archsimd/_gen/simdgen/ops/Converts/go.yaml
+++ b/src/simd/archsimd/_gen/simdgen/ops/Converts/go.yaml
@@ -390,11 +390,11 @@
bits: 128
- go: SaturateToUint8
regexpTag: "convert"
- asm: "VPMOVS[WDQ]B"
+ asm: "VPMOVUS[WDQ]B"
in:
- - base: int
+ - base: uint
out:
- - base: int
+ - base: uint
bits: 128
- go: SaturateToInt8
regexpTag: "convert"