From 01dd5728cc897777da95a7f4672b5a2540d52564 Mon Sep 17 00:00:00 2001 From: Jiangning Liu Date: Tue, 19 Nov 2013 01:38:31 +0000 Subject: Add predicate for AArch64 crypto instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195071 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/MC/AArch64/neon-crypto.s | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/MC') diff --git a/test/MC/AArch64/neon-crypto.s b/test/MC/AArch64/neon-crypto.s index df6eee8..2952dd5 100644 --- a/test/MC/AArch64/neon-crypto.s +++ b/test/MC/AArch64/neon-crypto.s @@ -1,4 +1,5 @@ -// RUN: llvm-mc -triple=aarch64 -mattr=+neon -show-encoding < %s | FileCheck %s +// RUN: llvm-mc -triple=aarch64 -mattr=+neon -mattr=+crypto -show-encoding < %s | FileCheck %s +// RUN: not llvm-mc -triple=aarch64 -mattr=+neon -show-encoding < %s 2>&1 | FileCheck -check-prefix=CHECK-NO-CRYPTO %s // Check that the assembler can handle the documented syntax for AArch64 @@ -11,6 +12,7 @@ aesmc v0.16b, v1.16b aesimc v0.16b, v1.16b +// CHECK-NO-CRYPTO: error: instruction requires a CPU feature not currently enabled // CHECK: aese v0.16b, v1.16b // encoding: [0x20,0x48,0x28,0x4e] // CHECK: aesd v0.16b, v1.16b // encoding: [0x20,0x58,0x28,0x4e] // CHECK: aesmc v0.16b, v1.16b // encoding: [0x20,0x68,0x28,0x4e] -- cgit v1.1