AArch64/ARM64: run AArch64 NEON MC tests through ARM64 too.
[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 // RUN: llvm-mc -triple arm64-none-linux-gnu -mattr=+neon -show-encoding < %s | FileCheck %s
3
4 // Check that the assembler can handle the documented syntax for AArch64
5
6 //----------------------------------------------------------------------
7 // Floating-point Reciprocal Step
8 //----------------------------------------------------------------------
9
10     frecps s21, s16, s13
11     frecps d22, d30, d21
12
13 // CHECK: frecps s21, s16, s13   // encoding: [0x15,0xfe,0x2d,0x5e]
14 // CHECK: frecps d22, d30, d21   // encoding: [0xd6,0xff,0x75,0x5e]
15
16 //----------------------------------------------------------------------
17 // Floating-point Reciprocal Square Root Step
18 //----------------------------------------------------------------------
19
20     frsqrts s21, s5, s12
21     frsqrts d8, d22, d18
22
23 // CHECK: frsqrts s21, s5, s12   // encoding: [0xb5,0xfc,0xac,0x5e]
24 // CHECK: frsqrts d8, d22, d18   // encoding: [0xc8,0xfe,0xf2,0x5e]
25
26 //----------------------------------------------------------------------
27 // Scalar Floating-point Reciprocal Estimate
28 //----------------------------------------------------------------------
29
30     frecpe s19, s14
31     frecpe d13, d13
32
33 // CHECK: frecpe s19, s14    // encoding: [0xd3,0xd9,0xa1,0x5e]
34 // CHECK: frecpe d13, d13    // encoding: [0xad,0xd9,0xe1,0x5e]
35
36 //----------------------------------------------------------------------
37 // Scalar Floating-point Reciprocal Exponent
38 //----------------------------------------------------------------------
39
40     frecpx s18, s10
41     frecpx d16, d19
42
43 // CHECK: frecpx s18, s10    // encoding: [0x52,0xf9,0xa1,0x5e]
44 // CHECK: frecpx d16, d19    // encoding: [0x70,0xfa,0xe1,0x5e]
45
46 //----------------------------------------------------------------------
47 // Scalar Floating-point Reciprocal Square Root Estimate
48 //----------------------------------------------------------------------
49
50     frsqrte s22, s13
51     frsqrte d21, d12
52
53 // CHECK: frsqrte s22, s13    // encoding: [0xb6,0xd9,0xa1,0x7e]
54 // CHECK: frsqrte d21, d12    // encoding: [0x95,0xd9,0xe1,0x7e]