mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
1a1a8110d3
Add +fp16fml feature for new FP16 instructions, which are a mandatory part of FP16 from v8.4-A and an optional part of FP16 from v8.2-A. It doesn't seem to be possible to model this in LLVM, but the relationship between the options is handled by the related clang patch. In keeping with what I think is the usual practice, the fp16fml extension is accepted regardless of base architecture version. Builds on/replaces Sjoerd Meijer's patch to add these instructions at https://reviews.llvm.org/D49839. Differential Revision: https://reviews.llvm.org/D50228 llvm-svn: 340013
52 lines
2.1 KiB
ArmAsm
52 lines
2.1 KiB
ArmAsm
// RUN: not llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+fp16fml,+neon < %s 2>&1 | FileCheck %s --check-prefix=CHECK
|
|
|
|
//------------------------------------------------------------------------------
|
|
// ARMV8.2-A Floating Point Multiplication
|
|
//------------------------------------------------------------------------------
|
|
|
|
fmlal V0.2s, v1.2h, v2.h[8]
|
|
fmlsl V0.2s, v1.2h, v2.h[8]
|
|
fmlal V0.4s, v1.4h, v2.h[8]
|
|
fmlsl V0.4s, v1.4h, v2.h[8]
|
|
|
|
fmlal2 V0.2s, v1.2h, v2.h[8]
|
|
fmlsl2 V0.2s, v1.2h, v2.h[8]
|
|
fmlal2 V0.4s, v1.4h, v2.h[8]
|
|
fmlsl2 V0.4s, v1.4h, v2.h[8]
|
|
|
|
fmlal V0.2s, v1.2h, v2.h[-1]
|
|
fmlsl2 V0.2s, v1.2h, v2.h[-1]
|
|
|
|
//CHECK: error: vector lane must be an integer in range [0, 7].
|
|
//CHECK-NEXT: fmlal V0.2s, v1.2h, v2.h[8]
|
|
//CHECK-NEXT: ^
|
|
//CHECK-NEXT: error: vector lane must be an integer in range [0, 7].
|
|
//CHECK-NEXT: fmlsl V0.2s, v1.2h, v2.h[8]
|
|
//CHECK-NEXT: ^
|
|
//CHECK-NEXT: error: vector lane must be an integer in range [0, 7].
|
|
//CHECK-NEXT: fmlal V0.4s, v1.4h, v2.h[8]
|
|
//CHECK-NEXT: ^
|
|
//CHECK-NEXT: error: vector lane must be an integer in range [0, 7].
|
|
//CHECK-NEXT: fmlsl V0.4s, v1.4h, v2.h[8]
|
|
//CHECK-NEXT: ^
|
|
|
|
//CHECK-NEXT: error: vector lane must be an integer in range [0, 7].
|
|
//CHECK-NEXT: fmlal2 V0.2s, v1.2h, v2.h[8]
|
|
//CHECK-NEXT: ^
|
|
//CHECK-NEXT: error: vector lane must be an integer in range [0, 7].
|
|
//CHECK-NEXT: fmlsl2 V0.2s, v1.2h, v2.h[8]
|
|
//CHECK-NEXT: ^
|
|
//CHECK-NEXT: error: vector lane must be an integer in range [0, 7].
|
|
//CHECK-NEXT: fmlal2 V0.4s, v1.4h, v2.h[8]
|
|
//CHECK-NEXT: ^
|
|
//CHECK-NEXT: error: vector lane must be an integer in range [0, 7].
|
|
//CHECK-NEXT: fmlsl2 V0.4s, v1.4h, v2.h[8]
|
|
//CHECK-NEXT: ^
|
|
|
|
//CHECK-NEXT: error: vector lane must be an integer in range [0, 7].
|
|
//CHECK-NEXT: fmlal V0.2s, v1.2h, v2.h[-1]
|
|
//CHECK-NEXT: ^
|
|
//CHECK-NEXT: error: vector lane must be an integer in range [0, 7].
|
|
//CHECK-NEXT: fmlsl2 V0.2s, v1.2h, v2.h[-1]
|
|
//CHECK-NEXT: ^
|