1*9880d681SAndroid Build Coastguard Worker// RUN: llvm-mc -triple aarch64-none-linux-gnu -mattr=+neon -show-encoding < %s | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker//------------------------------------------------------------------------------ 4*9880d681SAndroid Build Coastguard Worker// Duplicate element (scalar) 5*9880d681SAndroid Build Coastguard Worker//------------------------------------------------------------------------------ 6*9880d681SAndroid Build Coastguard Worker dup b0, v0.b[15] 7*9880d681SAndroid Build Coastguard Worker dup b1, v0.b[7] 8*9880d681SAndroid Build Coastguard Worker dup b17, v0.b[0] 9*9880d681SAndroid Build Coastguard Worker dup h5, v31.h[7] 10*9880d681SAndroid Build Coastguard Worker dup h9, v1.h[4] 11*9880d681SAndroid Build Coastguard Worker dup h11, v17.h[0] 12*9880d681SAndroid Build Coastguard Worker dup s2, v2.s[3] 13*9880d681SAndroid Build Coastguard Worker dup s4, v21.s[0] 14*9880d681SAndroid Build Coastguard Worker dup s31, v21.s[2] 15*9880d681SAndroid Build Coastguard Worker dup d3, v5.d[0] 16*9880d681SAndroid Build Coastguard Worker dup d6, v5.d[1] 17*9880d681SAndroid Build Coastguard Worker 18*9880d681SAndroid Build Coastguard Worker// CHECK: {{dup|mov}} b0, v0.b[15] // encoding: [0x00,0x04,0x1f,0x5e] 19*9880d681SAndroid Build Coastguard Worker// CHECK: {{dup|mov}} b1, v0.b[7] // encoding: [0x01,0x04,0x0f,0x5e] 20*9880d681SAndroid Build Coastguard Worker// CHECK: {{dup|mov}} b17, v0.b[0] // encoding: [0x11,0x04,0x01,0x5e] 21*9880d681SAndroid Build Coastguard Worker// CHECK: {{dup|mov}} h5, v31.h[7] // encoding: [0xe5,0x07,0x1e,0x5e] 22*9880d681SAndroid Build Coastguard Worker// CHECK: {{dup|mov}} h9, v1.h[4] // encoding: [0x29,0x04,0x12,0x5e] 23*9880d681SAndroid Build Coastguard Worker// CHECK: {{dup|mov}} h11, v17.h[0] // encoding: [0x2b,0x06,0x02,0x5e] 24*9880d681SAndroid Build Coastguard Worker// CHECK: {{dup|mov}} s2, v2.s[3] // encoding: [0x42,0x04,0x1c,0x5e] 25*9880d681SAndroid Build Coastguard Worker// CHECK: {{dup|mov}} s4, v21.s[0] // encoding: [0xa4,0x06,0x04,0x5e] 26*9880d681SAndroid Build Coastguard Worker// CHECK: {{dup|mov}} s31, v21.s[2] // encoding: [0xbf,0x06,0x14,0x5e] 27*9880d681SAndroid Build Coastguard Worker// CHECK: {{dup|mov}} d3, v5.d[0] // encoding: [0xa3,0x04,0x08,0x5e] 28*9880d681SAndroid Build Coastguard Worker// CHECK: {{dup|mov}} d6, v5.d[1] // encoding: [0xa6,0x04,0x18,0x5e] 29*9880d681SAndroid Build Coastguard Worker 30*9880d681SAndroid Build Coastguard Worker//------------------------------------------------------------------------------ 31*9880d681SAndroid Build Coastguard Worker// Aliases for Duplicate element (scalar) 32*9880d681SAndroid Build Coastguard Worker//------------------------------------------------------------------------------ 33*9880d681SAndroid Build Coastguard Worker mov b0, v0.b[15] 34*9880d681SAndroid Build Coastguard Worker mov b1, v0.b[7] 35*9880d681SAndroid Build Coastguard Worker mov b17, v0.b[0] 36*9880d681SAndroid Build Coastguard Worker mov h5, v31.h[7] 37*9880d681SAndroid Build Coastguard Worker mov h9, v1.h[4] 38*9880d681SAndroid Build Coastguard Worker mov h11, v17.h[0] 39*9880d681SAndroid Build Coastguard Worker mov s2, v2.s[3] 40*9880d681SAndroid Build Coastguard Worker mov s4, v21.s[0] 41*9880d681SAndroid Build Coastguard Worker mov s31, v21.s[2] 42*9880d681SAndroid Build Coastguard Worker mov d3, v5.d[0] 43*9880d681SAndroid Build Coastguard Worker mov d6, v5.d[1] 44*9880d681SAndroid Build Coastguard Worker 45*9880d681SAndroid Build Coastguard Worker// CHECK: {{dup|mov}} b0, v0.b[15] // encoding: [0x00,0x04,0x1f,0x5e] 46*9880d681SAndroid Build Coastguard Worker// CHECK: {{dup|mov}} b1, v0.b[7] // encoding: [0x01,0x04,0x0f,0x5e] 47*9880d681SAndroid Build Coastguard Worker// CHECK: {{dup|mov}} b17, v0.b[0] // encoding: [0x11,0x04,0x01,0x5e] 48*9880d681SAndroid Build Coastguard Worker// CHECK: {{dup|mov}} h5, v31.h[7] // encoding: [0xe5,0x07,0x1e,0x5e] 49*9880d681SAndroid Build Coastguard Worker// CHECK: {{dup|mov}} h9, v1.h[4] // encoding: [0x29,0x04,0x12,0x5e] 50*9880d681SAndroid Build Coastguard Worker// CHECK: {{dup|mov}} h11, v17.h[0] // encoding: [0x2b,0x06,0x02,0x5e] 51*9880d681SAndroid Build Coastguard Worker// CHECK: {{dup|mov}} s2, v2.s[3] // encoding: [0x42,0x04,0x1c,0x5e] 52*9880d681SAndroid Build Coastguard Worker// CHECK: {{dup|mov}} s4, v21.s[0] // encoding: [0xa4,0x06,0x04,0x5e] 53*9880d681SAndroid Build Coastguard Worker// CHECK: {{dup|mov}} s31, v21.s[2] // encoding: [0xbf,0x06,0x14,0x5e] 54*9880d681SAndroid Build Coastguard Worker// CHECK: {{dup|mov}} d3, v5.d[0] // encoding: [0xa3,0x04,0x08,0x5e] 55*9880d681SAndroid Build Coastguard Worker// CHECK: {{dup|mov}} d6, v5.d[1] // encoding: [0xa6,0x04,0x18,0x5e] 56