[AArch64] Add support for NEON scalar arithmetic instructions:
[oota-llvm.git] / test / MC / AArch64 / neon-scalar-recip.s
1 // RUN: llvm-mc -triple aarch64-none-linux-gnu -mattr=+neon -show-encoding < %s | FileCheck %s
2
3 // Check that the assembler can handle the documented syntax for AArch64
4
5 //----------------------------------------------------------------------
6 // Floating-point Reciprocal Step
7 //----------------------------------------------------------------------
8
9     frecps s21, s16, s13
10     frecps d22, d30, d21
11
12 // CHECK: frecps s21, s16, s13   // encoding: [0x15,0xfe,0x2d,0x5e]
13 // CHECK: frecps d22, d30, d21   // encoding: [0xd6,0xff,0x75,0x5e]
14
15 //----------------------------------------------------------------------
16 // Floating-point Reciprocal Square Root Step
17 //----------------------------------------------------------------------
18
19     frsqrts s21, s5, s12
20     frsqrts d8, d22, d18
21
22 // CHECK: frsqrts s21, s5, s12   // encoding: [0xb5,0xfc,0xac,0x5e]
23 // CHECK: frsqrts d8, d22, d18   // encoding: [0xc8,0xfe,0xf2,0x5e]