summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/AArch64/directive-cpu.s
blob: 8e7d453374458894b65d25f5974ab41b99192449 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// RUN: not llvm-mc -triple aarch64-unknown-none-eabi -filetype asm -o - %s 2>&1 | FileCheck %s

	.cpu generic

	fminnm d0, d0, d1

	.cpu generic+fp

	fminnm d0, d0, d1

	.cpu generic+nofp

	fminnm d0, d0, d1

	.cpu generic+simd

	addp v0.4s, v0.4s, v0.4s

	.cpu generic+nosimd

	addp v0.4s, v0.4s, v0.4s

	.cpu generic+crc

	crc32cx w0, w1, x3

	.cpu generic+nocrc

	crc32cx w0, w1, x3

	.cpu generic+crypto+nocrc

	aesd v0.16b, v2.16b

	.cpu generic+nocrypto+crc

	aesd v0.16b, v2.16b

// NOTE: the errors precede the actual output!  The errors appear in order
// though, so validate by hoisting them to the top and preservering relative
// ordering

// CHECK: error: instruction requires: fp-armv8
// CHECK: 	fminnm d0, d0, d1
// CHECK: 	^

// CHECK: error: instruction requires: neon
// CHECK: 	addp v0.4s, v0.4s, v0.4s
// CHECK: 	^

// CHECK: error: instruction requires: crc
// CHECK: 	crc32cx w0, w1, x3
// CHECK: 	^

// CHECK: error: instruction requires: crypto
// CHECK: 	aesd v0.16b, v2.16b
// CHECK: 	^

// CHECK:	fminnm d0, d0, d1
// CHECK:	fminnm d0, d0, d1
// CHECK:	addp v0.4s, v0.4s, v0.4s
// CHECK:	crc32cx w0, w1, x3
// CHECK:	aesd v0.16b, v2.16b
OpenPOWER on IntegriCloud