xref: /aosp_15_r20/external/llvm/test/MC/AArch64/neon-scalar-by-elem-mul.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// Floating Point  multiply (scalar, by element)
5*9880d681SAndroid Build Coastguard Worker//------------------------------------------------------------------------------
6*9880d681SAndroid Build Coastguard Worker    fmul    h0, h1, v1.h[5]
7*9880d681SAndroid Build Coastguard Worker    fmul    s0, s1, v1.s[0]
8*9880d681SAndroid Build Coastguard Worker    fmul    s30, s11, v1.s[1]
9*9880d681SAndroid Build Coastguard Worker    fmul    s4, s5, v7.s[2]
10*9880d681SAndroid Build Coastguard Worker    fmul    s16, s22, v16.s[3]
11*9880d681SAndroid Build Coastguard Worker    fmul    d0, d1, v1.d[0]
12*9880d681SAndroid Build Coastguard Worker    fmul    d30, d11, v1.d[1]
13*9880d681SAndroid Build Coastguard Worker
14*9880d681SAndroid Build Coastguard Worker// CHECK: fmul    h0, h1, v1.h[5]         // encoding: [0x20,0x98,0x11,0x5f]
15*9880d681SAndroid Build Coastguard Worker// CHECK: fmul    s0, s1, v1.s[0]      // encoding: [0x20,0x90,0x81,0x5f]
16*9880d681SAndroid Build Coastguard Worker// CHECK: fmul    s30, s11, v1.s[1]    // encoding: [0x7e,0x91,0xa1,0x5f]
17*9880d681SAndroid Build Coastguard Worker// CHECK: fmul    s4, s5, v7.s[2]      // encoding: [0xa4,0x98,0x87,0x5f]
18*9880d681SAndroid Build Coastguard Worker// CHECK: fmul    s16, s22, v16.s[3]   // encoding: [0xd0,0x9a,0xb0,0x5f]
19*9880d681SAndroid Build Coastguard Worker// CHECK: fmul    d0, d1, v1.d[0]      // encoding: [0x20,0x90,0xc1,0x5f]
20*9880d681SAndroid Build Coastguard Worker// CHECK: fmul    d30, d11, v1.d[1]    // encoding: [0x7e,0x99,0xc1,0x5f]
21*9880d681SAndroid Build Coastguard Worker
22*9880d681SAndroid Build Coastguard Worker
23*9880d681SAndroid Build Coastguard Worker//------------------------------------------------------------------------------
24*9880d681SAndroid Build Coastguard Worker// Floating Point  multiply extended (scalar, by element)
25*9880d681SAndroid Build Coastguard Worker//------------------------------------------------------------------------------
26*9880d681SAndroid Build Coastguard Worker    fmulx   h6, h2, v8.h[5]
27*9880d681SAndroid Build Coastguard Worker    fmulx   s6, s2, v8.s[0]
28*9880d681SAndroid Build Coastguard Worker    fmulx   s7, s3, v13.s[1]
29*9880d681SAndroid Build Coastguard Worker    fmulx   s9, s7, v9.s[2]
30*9880d681SAndroid Build Coastguard Worker    fmulx   s13, s21, v10.s[3]
31*9880d681SAndroid Build Coastguard Worker    fmulx   d15, d9, v7.d[0]
32*9880d681SAndroid Build Coastguard Worker    fmulx   d13, d12, v11.d[1]
33*9880d681SAndroid Build Coastguard Worker
34*9880d681SAndroid Build Coastguard Worker// CHECK: fmulx   h6, h2, v8.h[5]         // encoding: [0x46,0x98,0x18,0x7f]
35*9880d681SAndroid Build Coastguard Worker// CHECK: fmulx   s6, s2, v8.s[0]         // encoding: [0x46,0x90,0x88,0x7f]
36*9880d681SAndroid Build Coastguard Worker// CHECK: fmulx   s7, s3, v13.s[1]        // encoding: [0x67,0x90,0xad,0x7f]
37*9880d681SAndroid Build Coastguard Worker// CHECK: fmulx   s9, s7, v9.s[2]         // encoding: [0xe9,0x98,0x89,0x7f]
38*9880d681SAndroid Build Coastguard Worker// CHECK: fmulx   s13, s21, v10.s[3]      // encoding: [0xad,0x9a,0xaa,0x7f]
39*9880d681SAndroid Build Coastguard Worker// CHECK: fmulx   d15, d9, v7.d[0]        // encoding: [0x2f,0x91,0xc7,0x7f]
40*9880d681SAndroid Build Coastguard Worker// CHECK: fmulx   d13, d12, v11.d[1]      // encoding: [0x8d,0x99,0xcb,0x7f]
41*9880d681SAndroid Build Coastguard Worker
42