diff options
author | Chad Rosier <mcrosier@codeaurora.org> | 2013-10-08 20:43:30 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@codeaurora.org> | 2013-10-08 20:43:30 +0000 |
commit | 3dfe644f7b6a560e1991b03d8c419c973ac7ed8d (patch) | |
tree | 2d8a4e016b24fa61e59501defc94d761acec190d /test/MC/AArch64 | |
parent | 73f615b0bd822db3a2a8aab2fd4ed58f093c9769 (diff) | |
download | external_llvm-3dfe644f7b6a560e1991b03d8c419c973ac7ed8d.zip external_llvm-3dfe644f7b6a560e1991b03d8c419c973ac7ed8d.tar.gz external_llvm-3dfe644f7b6a560e1991b03d8c419c973ac7ed8d.tar.bz2 |
[AArch64] Add support for NEON scalar signed/unsigned integer to floating-point
convert instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192231 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/AArch64')
-rw-r--r-- | test/MC/AArch64/neon-scalar-cvt.s | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/MC/AArch64/neon-scalar-cvt.s b/test/MC/AArch64/neon-scalar-cvt.s new file mode 100644 index 0000000..07faef7 --- /dev/null +++ b/test/MC/AArch64/neon-scalar-cvt.s @@ -0,0 +1,23 @@ +// RUN: llvm-mc -triple aarch64-none-linux-gnu -mattr=+neon -show-encoding < %s | FileCheck %s + +// Check that the assembler can handle the documented syntax for AArch64 + +//---------------------------------------------------------------------- +// Scalar Signed Integer Convert To Floating-point +//---------------------------------------------------------------------- + + scvtf s22, s13 + scvtf d21, d12 + +// CHECK: scvtf s22, s13 // encoding: [0xb6,0xd9,0x21,0x5e] +// CHECK: scvtf d21, d12 // encoding: [0x95,0xd9,0x61,0x5e] + +//---------------------------------------------------------------------- +// Scalar Unsigned Integer Convert To Floating-point +//---------------------------------------------------------------------- + + ucvtf s22, s13 + ucvtf d21, d14 + +// CHECK: ucvtf s22, s13 // encoding: [0xb6,0xd9,0x21,0x7e] +// CHECK: ucvtf d21, d14 // encoding: [0xd5,0xd9,0x61,0x7e] |