xref: /aosp_15_r20/external/llvm/test/MC/AArch64/directive-cpu.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker// RUN: not llvm-mc -triple aarch64-unknown-none-eabi -filetype asm -o - %s 2>&1 | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker	.cpu generic
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker	fminnm d0, d0, d1
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Worker	.cpu generic+fp
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Worker	fminnm d0, d0, d1
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Worker	.cpu generic+nofp
12*9880d681SAndroid Build Coastguard Worker
13*9880d681SAndroid Build Coastguard Worker	fminnm d0, d0, d1
14*9880d681SAndroid Build Coastguard Worker
15*9880d681SAndroid Build Coastguard Worker	.cpu generic+simd
16*9880d681SAndroid Build Coastguard Worker
17*9880d681SAndroid Build Coastguard Worker	addp v0.4s, v0.4s, v0.4s
18*9880d681SAndroid Build Coastguard Worker
19*9880d681SAndroid Build Coastguard Worker	.cpu generic+nosimd
20*9880d681SAndroid Build Coastguard Worker
21*9880d681SAndroid Build Coastguard Worker	addp v0.4s, v0.4s, v0.4s
22*9880d681SAndroid Build Coastguard Worker
23*9880d681SAndroid Build Coastguard Worker	.cpu generic+crc
24*9880d681SAndroid Build Coastguard Worker
25*9880d681SAndroid Build Coastguard Worker	crc32cx w0, w1, x3
26*9880d681SAndroid Build Coastguard Worker
27*9880d681SAndroid Build Coastguard Worker	.cpu generic+nocrc
28*9880d681SAndroid Build Coastguard Worker
29*9880d681SAndroid Build Coastguard Worker	crc32cx w0, w1, x3
30*9880d681SAndroid Build Coastguard Worker
31*9880d681SAndroid Build Coastguard Worker	.cpu generic+crypto+nocrc
32*9880d681SAndroid Build Coastguard Worker
33*9880d681SAndroid Build Coastguard Worker	aesd v0.16b, v2.16b
34*9880d681SAndroid Build Coastguard Worker
35*9880d681SAndroid Build Coastguard Worker	.cpu generic+nocrypto+crc
36*9880d681SAndroid Build Coastguard Worker
37*9880d681SAndroid Build Coastguard Worker	aesd v0.16b, v2.16b
38*9880d681SAndroid Build Coastguard Worker
39*9880d681SAndroid Build Coastguard Worker// NOTE: the errors precede the actual output!  The errors appear in order
40*9880d681SAndroid Build Coastguard Worker// though, so validate by hoisting them to the top and preservering relative
41*9880d681SAndroid Build Coastguard Worker// ordering
42*9880d681SAndroid Build Coastguard Worker
43*9880d681SAndroid Build Coastguard Worker// CHECK: error: instruction requires: fp-armv8
44*9880d681SAndroid Build Coastguard Worker// CHECK: 	fminnm d0, d0, d1
45*9880d681SAndroid Build Coastguard Worker// CHECK: 	^
46*9880d681SAndroid Build Coastguard Worker
47*9880d681SAndroid Build Coastguard Worker// CHECK: error: instruction requires: neon
48*9880d681SAndroid Build Coastguard Worker// CHECK: 	addp v0.4s, v0.4s, v0.4s
49*9880d681SAndroid Build Coastguard Worker// CHECK: 	^
50*9880d681SAndroid Build Coastguard Worker
51*9880d681SAndroid Build Coastguard Worker// CHECK: error: instruction requires: crc
52*9880d681SAndroid Build Coastguard Worker// CHECK: 	crc32cx w0, w1, x3
53*9880d681SAndroid Build Coastguard Worker// CHECK: 	^
54*9880d681SAndroid Build Coastguard Worker
55*9880d681SAndroid Build Coastguard Worker// CHECK: error: instruction requires: crypto
56*9880d681SAndroid Build Coastguard Worker// CHECK: 	aesd v0.16b, v2.16b
57*9880d681SAndroid Build Coastguard Worker// CHECK: 	^
58*9880d681SAndroid Build Coastguard Worker
59*9880d681SAndroid Build Coastguard Worker// CHECK:	fminnm d0, d0, d1
60*9880d681SAndroid Build Coastguard Worker// CHECK:	fminnm d0, d0, d1
61*9880d681SAndroid Build Coastguard Worker// CHECK:	addp v0.4s, v0.4s, v0.4s
62*9880d681SAndroid Build Coastguard Worker// CHECK:	crc32cx w0, w1, x3
63*9880d681SAndroid Build Coastguard Worker// CHECK:	aesd v0.16b, v2.16b
64