mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
539ee65110
This adds MC support for the crypto instructions that were made optional extensions in Armv8.2-A (AArch64 only). Differential Revision: https://reviews.llvm.org/D49370 llvm-svn: 338010
32 lines
1.4 KiB
ArmAsm
32 lines
1.4 KiB
ArmAsm
// RUN: not llvm-mc -triple aarch64 -mattr=+sm4,+sha3 -show-encoding < %s 2>&1 | FileCheck %s
|
|
|
|
xar v26.2d, v21.2d, v27.2d, #-1
|
|
xar v26.2d, v21.2d, v27.2d, #64
|
|
sm3tt1a v20.4s, v23.4s, v21.s[4]
|
|
sm3tt1b v20.4s, v23.4s, v21.s[4]
|
|
sm3tt2a v20.4s, v23.4s, v21.s[4]
|
|
sm3tt2b v20.4s, v23.4s, v21.s[4]
|
|
sm3tt2b v20.4s, v23.4s, v21.s[-1]
|
|
|
|
// CHECK: error: immediate must be an integer in range [0, 63].
|
|
// CHECK-NEXT: xar v26.2d, v21.2d, v27.2d, #-1
|
|
// CHECK-NEXT: ^
|
|
// CHECK-NEXT: error: immediate must be an integer in range [0, 63].
|
|
// CHECK-NEXT: xar v26.2d, v21.2d, v27.2d, #64
|
|
// CHECK-NEXT: ^
|
|
// CHECK-NEXT: error: vector lane must be an integer in range [0, 3].
|
|
// CHECK-NEXT: sm3tt1a v20.4s, v23.4s, v21.s[4]
|
|
// CHECK-NEXT: ^
|
|
// CHECK-NEXT: error: vector lane must be an integer in range [0, 3].
|
|
// CHECK-NEXT: sm3tt1b v20.4s, v23.4s, v21.s[4]
|
|
// CHECK-NEXT: ^
|
|
// CHECK-NEXT: error: vector lane must be an integer in range [0, 3].
|
|
// CHECK-NEXT: sm3tt2a v20.4s, v23.4s, v21.s[4]
|
|
// CHECK-NEXT: ^
|
|
// CHECK-NEXT: error: vector lane must be an integer in range [0, 3].
|
|
// CHECK-NEXT: sm3tt2b v20.4s, v23.4s, v21.s[4]
|
|
// CHECK-NEXT: ^
|
|
// CHECK-NEXT: error: vector lane must be an integer in range [0, 3].
|
|
// CHECK-NEXT: sm3tt2b v20.4s, v23.4s, v21.s[-1]
|
|
// CHECK-NEXT: ^
|