2016-06-11 01:33:28 +08:00
|
|
|
// RUN: not llvm-mc -triple aarch64-unknown-none-eabi -filetype asm -o - %s 2>&1 | FileCheck %s
|
|
|
|
|
|
|
|
.arch axp64
|
|
|
|
# CHECK: error: unknown arch name
|
2018-06-26 17:49:31 +08:00
|
|
|
# CHECK-NEXT: .arch axp64
|
|
|
|
# CHECK-NEXT: ^
|
2016-06-11 01:33:28 +08:00
|
|
|
|
|
|
|
.arch armv8
|
2016-09-09 01:27:03 +08:00
|
|
|
aese v0.8h, v1.8h
|
2016-06-11 01:33:28 +08:00
|
|
|
|
2016-09-09 01:27:03 +08:00
|
|
|
# CHECK: error: invalid operand for instruction
|
2018-06-26 17:49:31 +08:00
|
|
|
# CHECK-NEXT: aese v0.8h, v1.8h
|
|
|
|
# CHECK-NEXT: ^
|
2016-06-11 01:33:28 +08:00
|
|
|
|
2016-09-09 01:27:03 +08:00
|
|
|
// We silently ignore invalid features.
|
|
|
|
.arch armv8+foo
|
|
|
|
aese v0.8h, v1.8h
|
2016-06-11 01:33:28 +08:00
|
|
|
|
2016-09-09 01:27:03 +08:00
|
|
|
# CHECK: error: invalid operand for instruction
|
2018-06-26 17:49:31 +08:00
|
|
|
# CHECK-NEXT: aese v0.8h, v1.8h
|
|
|
|
# CHECK-NEXT: ^
|
2016-06-11 01:33:28 +08:00
|
|
|
|
2016-09-09 01:27:03 +08:00
|
|
|
.arch armv8+crypto
|
2016-06-11 01:33:28 +08:00
|
|
|
|
|
|
|
.arch armv8
|
|
|
|
|
2016-09-09 01:27:03 +08:00
|
|
|
aese v0.8h, v1.8h
|
2016-06-11 01:33:28 +08:00
|
|
|
|
2016-09-09 01:27:03 +08:00
|
|
|
# CHECK: error: invalid operand for instruction
|
2018-06-26 17:49:31 +08:00
|
|
|
# CHECK-NEXT: aese v0.8h, v1.8h
|
|
|
|
# CHECK-NEXT: ^
|
2016-06-11 01:33:28 +08:00
|
|
|
|
2016-09-20 05:55:04 +08:00
|
|
|
.arch armv8.1-a+noras
|
|
|
|
esb
|
|
|
|
|
|
|
|
# CHECK: error: instruction requires: ras
|
2018-06-26 17:49:31 +08:00
|
|
|
# CHECK-NEXT: esb
|
2016-12-01 06:25:24 +08:00
|
|
|
|
2017-05-02 08:45:01 +08:00
|
|
|
// PR32873: without extra features, '.arch' is currently ignored.
|
|
|
|
// Add an unrelated feature to accept the directive.
|
|
|
|
.arch armv8+crc
|
|
|
|
casa w5, w7, [x19]
|
|
|
|
|
|
|
|
# CHECK: error: instruction requires: lse
|
2018-06-26 17:49:31 +08:00
|
|
|
# CHECK-NEXT: casa w5, w7, [x19]
|
2017-05-02 08:45:01 +08:00
|
|
|
|
2017-05-04 04:33:52 +08:00
|
|
|
.arch armv8+crypto
|
|
|
|
crc32b w0, w1, w2
|
|
|
|
|
|
|
|
# CHECK: error: instruction requires: crc
|
2018-06-26 17:49:31 +08:00
|
|
|
# CHECK-NEXT: crc32b w0, w1, w2
|
2017-05-04 04:33:52 +08:00
|
|
|
|
2016-12-01 06:25:24 +08:00
|
|
|
.arch armv8.1-a+nolse
|
|
|
|
casa w5, w7, [x20]
|
|
|
|
|
|
|
|
# CHECK: error: instruction requires: lse
|
2018-06-26 17:49:31 +08:00
|
|
|
# CHECK-NEXT: casa w5, w7, [x20]
|