1 !sum
2 # ReduceSum — floating-point add across all lanes (ZFADDV). The sum is a float
3 # in a floating-point scalar register.
4 # Predicated-only: the governing predicate is implicit-all-true.
5 - go: ReduceSum
6 asm: "ZFADDV[SD]"
7 in:
8 - go: $t
9 base: float
10 - class: mask # governing predicate
11 out:
12 - &floatScalar
13 class: fpreg
14 base: float
15
16 # ReduceMax — floating-point maximum across all lanes (ZFMAXV), the same shape
17 # as ReduceSum. FMAXV propagates NaN, as Go's max does.
18 - go: ReduceMax
19 asm: "ZFMAXV[SD]"
20 in:
21 - go: $t
22 base: float
23 - class: mask # governing predicate
24 out:
25 - *floatScalar
26
View as plain text