[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / ARM / directive-arch_extension-aes-sha2.s
blobca1a40118fe300051aa720ad6ae2d21b945cea02
1 @ RUN: not llvm-mc -triple armv8-eabi -filetype asm < %s 2> %t | FileCheck %s
2 @ RUN: FileCheck --check-prefix=CHECK-ERROR < %t %s
3 @ RUN: not llvm-mc -triple thumbv8-eabi -filetype asm < %s 2> %t | FileCheck %s
4 @ RUN: FileCheck --check-prefix=CHECK-ERROR < %t %s
6 .syntax unified
8 .arch_extension aes
9 .arch_extension sha2
11 .type crypto,%function
12 crypto:
13 aesd.8 q0, q1
14 sha1c.32 q0, q1, q2
16 @CHECK-LABEL: crypto:
17 @CHECK: aesd.8 q0, q1
18 @CHECK: sha1c.32 q0, q1, q2
20 .arch_extension noaes
21 .arch_extension nosha2
23 .type nocrypto,%function
24 nocrypto:
25 aesd.8 q0, q1
26 sha1c.32 q0, q1, q2
28 @CHECK-ERROR: error: instruction requires: aes
29 @CHECK-ERROR: aesd.8 q0, q1
30 @CHECK-ERROR: ^
32 @CHECK-ERROR: error: instruction requires: sha2
33 @CHECK-ERROR: sha1c.32 q0, q1, q2
34 @CHECK-ERROR: ^