From 929d9ef111cc0053e245d04464c5ba9fba7727b2 Mon Sep 17 00:00:00 2001 From: Joey Gouly Date: Thu, 4 Jul 2013 10:04:08 +0000 Subject: Add a V8FP instruction 'vcvt{b,t}' to convert between half and double precision. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185620 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/MC/ARM/invalid-v8fp.s | 10 ++++++++++ test/MC/ARM/v8fp.s | 23 +++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 test/MC/ARM/invalid-v8fp.s create mode 100644 test/MC/ARM/v8fp.s (limited to 'test/MC/ARM') diff --git a/test/MC/ARM/invalid-v8fp.s b/test/MC/ARM/invalid-v8fp.s new file mode 100644 index 0000000..e2dbb8b --- /dev/null +++ b/test/MC/ARM/invalid-v8fp.s @@ -0,0 +1,10 @@ +@ RUN: llvm-mc -triple armv7 -show-encoding < %s | FileCheck %s + +@ VCVT{B,T} + + vcvtt.f64.f16 d3, s1 +@ CHECK-NOT: vcvtt.f64.f16 d3, s1 @ encoding: [0xe0,0x3b,0xb2,0xee] + vcvtt.f16.f64 s5, d12 +@ CHECK-NOT: vcvtt.f16.f64 s5, d12 @ encoding: [0xcc,0x2b,0xf3,0xee] + + diff --git a/test/MC/ARM/v8fp.s b/test/MC/ARM/v8fp.s new file mode 100644 index 0000000..f6bf7b9 --- /dev/null +++ b/test/MC/ARM/v8fp.s @@ -0,0 +1,23 @@ +@ RUN: llvm-mc -triple armv8 -mattr=+v8fp -show-encoding < %s | FileCheck %s + +@ VCVT{B,T} + + vcvtt.f64.f16 d3, s1 +@ CHECK: vcvtt.f64.f16 d3, s1 @ encoding: [0xe0,0x3b,0xb2,0xee] + vcvtt.f16.f64 s5, d12 +@ CHECK: vcvtt.f16.f64 s5, d12 @ encoding: [0xcc,0x2b,0xf3,0xee] + + vcvtb.f64.f16 d3, s1 +@ CHECK: vcvtb.f64.f16 d3, s1 @ encoding: [0x60,0x3b,0xb2,0xee] + vcvtb.f16.f64 s4, d1 +@ CHECK: vcvtb.f16.f64 s4, d1 @ encoding: [0x41,0x2b,0xb3,0xee] + + vcvttge.f64.f16 d3, s1 +@ CHECK: vcvttge.f64.f16 d3, s1 @ encoding: [0xe0,0x3b,0xb2,0xae] + vcvttgt.f16.f64 s5, d12 +@ CHECK: vcvttgt.f16.f64 s5, d12 @ encoding: [0xcc,0x2b,0xf3,0xce] + + vcvtbeq.f64.f16 d3, s1 +@ CHECK: vcvtbeq.f64.f16 d3, s1 @ encoding: [0x60,0x3b,0xb2,0x0e] + vcvtblt.f16.f64 s4, d1 +@ CHECK: vcvtblt.f16.f64 s4, d1 @ encoding: [0x41,0x2b,0xb3,0xbe] -- cgit v1.1