1 # RUN: llvm-mc -triple aarch64-none-linux-gnu -mattr=+v8.4a,+crypto,+sm4,+sha3 --disassemble < %s | FileCheck %s
2 # RUN: llvm-mc -triple aarch64-none-linux-gnu -mattr=+v8.4a,-crypto,-sm4,-sha3 --disassemble < %s 2>&1 | FileCheck %s --check-prefix=CHECK-ERROR
9 # CHECK: sha512h q0, q1, v2.2d
10 # CHECK: sha512h2 q0, q1, v2.2d
11 # CHECK: sha512su0 v11.2d, v12.2d
12 # CHECK: sha512su1 v11.2d, v13.2d, v14.2d
28 # CHECK: eor3 v25.16b, v12.16b, v7.16b, v2.16b
29 # CHECK: rax1 v30.2d, v29.2d, v26.2d
30 # CHECK: xar v26.2d, v21.2d, v27.2d, #63
31 # CHECK: bcax v31.16b, v26.16b, v2.16b, v1.16b
32 # CHECK: sm3ss1 v20.4s, v23.4s, v21.4s, v22.4s
33 # CHECK: sm3tt1a v20.4s, v23.4s, v21.s[3]
34 # CHECK: sm3tt1b v20.4s, v23.4s, v21.s[3]
35 # CHECK: sm3tt2a v20.4s, v23.4s, v21.s[3]
36 # CHECK: sm3tt2b v20.4s, v23.4s, v21.s[3]
37 # CHECK: sm3partw1 v30.4s, v29.4s, v26.4s
38 # CHECK: sm3partw2 v30.4s, v29.4s, v26.4s
39 # CHECK: sm4ekey v11.4s, v11.4s, v19.4s
40 # CHECK: sm4e v2.4s, v15.4s
42 #CHECK-ERROR: warning: invalid instruction encoding
43 #CHECK-ERROR: 0x20,0x80,0x62,0xce
45 #CHECK-ERROR: warning: invalid instruction encoding
46 #CHECK-ERROR: 0x20,0x84,0x62,0xce
48 #CHECK-ERROR: warning: invalid instruction encoding
49 #CHECK-ERROR: 0x8b,0x81,0xc0,0xce
51 #CHECK-ERROR: warning: invalid instruction encoding
52 #CHECK-ERROR: 0xab,0x89,0x6e,0xce
54 #CHECK-ERROR: warning: invalid instruction encoding
55 #CHECK-ERROR: 0x99,0x09,0x07,0xce
57 #CHECK-ERROR: warning: invalid instruction encoding
58 #CHECK-ERROR: 0xbe,0x8f,0x7a,0xce
60 #CHECK-ERROR: warning: invalid instruction encoding
61 #CHECK-ERROR: 0xba,0xfe,0x9b,0xce
63 #CHECK-ERROR: warning: invalid instruction encoding
64 #CHECK-ERROR: 0x5f,0x07,0x22,0xce
66 #CHECK-ERROR: warning: invalid instruction encoding
67 #CHECK-ERROR: 0xf4,0x5a,0x55,0xce
69 #CHECK-ERROR: warning: invalid instruction encoding
70 #CHECK-ERROR: 0xf4,0xb2,0x55,0xce
72 #CHECK-ERROR: warning: invalid instruction encoding
73 #CHECK-ERROR: 0xf4,0xb6,0x55,0xce
75 #CHECK-ERROR: warning: invalid instruction encoding
76 #CHECK-ERROR: 0xf4,0xba,0x55,0xce
78 #CHECK-ERROR: warning: invalid instruction encoding
79 #CHECK-ERROR: 0xf4,0xbe,0x55,0xce
81 #CHECK-ERROR: warning: invalid instruction encoding
82 #CHECK-ERROR: 0xbe,0xc3,0x7a,0xce
84 #CHECK-ERROR: warning: invalid instruction encoding
85 #CHECK-ERROR: 0xbe,0xc7,0x7a,0xce
87 #CHECK-ERROR: warning: invalid instruction encoding
88 #CHECK-ERROR: 0x6b,0xc9,0x73,0xce
90 #CHECK-ERROR: warning: invalid instruction encoding
91 #CHECK-ERROR: 0xe2,0x85,0xc0,0xce