Home | History | Annotate | Download | only in AArch64
      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 // Scalar Integer Saturating Doubling Multiply Half High
      7 //----------------------------------------------------------------------
      8 
      9     sqdmulh h10, h11, h12
     10     sqdmulh s20, s21, s2
     11 
     12 // CHECK: sqdmulh h10, h11, h12     // encoding: [0x6a,0xb5,0x6c,0x5e]
     13 // CHECK: sqdmulh s20, s21, s2      // encoding: [0xb4,0xb6,0xa2,0x5e]
     14 
     15 //----------------------------------------------------------------------
     16 // Scalar Integer Saturating Rounding Doubling Multiply Half High
     17 //----------------------------------------------------------------------
     18 
     19     sqrdmulh h10, h11, h12
     20     sqrdmulh s20, s21, s2
     21 
     22 // CHECK: sqrdmulh h10, h11, h12     // encoding: [0x6a,0xb5,0x6c,0x7e]
     23 // CHECK: sqrdmulh s20, s21, s2      // encoding: [0xb4,0xb6,0xa2,0x7e]
     24 
     25 //----------------------------------------------------------------------
     26 // Floating-point Multiply Extended
     27 //----------------------------------------------------------------------
     28 
     29     fmulx s20, s22, s15
     30     fmulx d23, d11, d1
     31 
     32 // CHECK: fmulx s20, s22, s15   // encoding: [0xd4,0xde,0x2f,0x5e]
     33 // CHECK: fmulx d23, d11, d1    // encoding: [0x77,0xdd,0x61,0x5e]
     34 
     35 //----------------------------------------------------------------------
     36 // Signed Saturating Doubling Multiply-Add Long
     37 //----------------------------------------------------------------------
     38 
     39     sqdmlal s17, h27, h12
     40     sqdmlal d19, s24, s12
     41 
     42 // CHECK: sqdmlal s17, h27, h12  // encoding: [0x71,0x93,0x6c,0x5e]
     43 // CHECK: sqdmlal d19, s24, s12  // encoding: [0x13,0x93,0xac,0x5e]
     44 
     45 //----------------------------------------------------------------------
     46 // Signed Saturating Doubling Multiply-Subtract Long
     47 //----------------------------------------------------------------------
     48 
     49     sqdmlsl s14, h12, h25
     50     sqdmlsl d12, s23, s13
     51 
     52 // CHECK: sqdmlsl s14, h12, h25  // encoding: [0x8e,0xb1,0x79,0x5e]
     53 // CHECK: sqdmlsl d12, s23, s13  // encoding: [0xec,0xb2,0xad,0x5e]
     54 
     55 //----------------------------------------------------------------------
     56 // Signed Saturating Doubling Multiply Long
     57 //----------------------------------------------------------------------
     58 
     59     sqdmull s12, h22, h12
     60     sqdmull d15, s22, s12
     61 
     62 // CHECK: sqdmull s12, h22, h12  // encoding: [0xcc,0xd2,0x6c,0x5e]
     63 // CHECK: sqdmull d15, s22, s12  // encoding: [0xcf,0xd2,0xac,0x5e]
     64