xref: /aosp_15_r20/external/llvm/test/MC/AArch64/neon-scalar-reduce-pairwise.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker// RUN: llvm-mc -triple aarch64-none-linux-gnu -mattr=+neon,+fullfp16 -show-encoding < %s | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker//----------------------------------------------------------------------
4*9880d681SAndroid Build Coastguard Worker// Scalar Reduce Add Pairwise (Integer)
5*9880d681SAndroid Build Coastguard Worker//----------------------------------------------------------------------
6*9880d681SAndroid Build Coastguard Worker      addp d0, v1.2d
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Worker// CHECK: addp d0, v1.2d     // encoding: [0x20,0xb8,0xf1,0x5e]
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Worker//----------------------------------------------------------------------
11*9880d681SAndroid Build Coastguard Worker// Scalar Reduce Add Pairwise (Floating Point)
12*9880d681SAndroid Build Coastguard Worker//----------------------------------------------------------------------
13*9880d681SAndroid Build Coastguard Worker      faddp h18, v3.2h
14*9880d681SAndroid Build Coastguard Worker      faddp h18, v3.2H
15*9880d681SAndroid Build Coastguard Worker      faddp s19, v2.2s
16*9880d681SAndroid Build Coastguard Worker      faddp d20, v1.2d
17*9880d681SAndroid Build Coastguard Worker
18*9880d681SAndroid Build Coastguard Worker// CHECK: faddp h18, v3.2h     // encoding: [0x72,0xd8,0x30,0x5e]
19*9880d681SAndroid Build Coastguard Worker// CHECK: faddp s19, v2.2s     // encoding: [0x53,0xd8,0x30,0x7e]
20*9880d681SAndroid Build Coastguard Worker// CHECK: faddp d20, v1.2d     // encoding: [0x34,0xd8,0x70,0x7e]
21*9880d681SAndroid Build Coastguard Worker
22