diff options
Diffstat (limited to 'llvm/test/MC/AArch64/SVE/directive-arch_extension-negative.s')
-rw-r--r-- | llvm/test/MC/AArch64/SVE/directive-arch_extension-negative.s | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/MC/AArch64/SVE/directive-arch_extension-negative.s b/llvm/test/MC/AArch64/SVE/directive-arch_extension-negative.s new file mode 100644 index 00000000000..b07afa6d5d0 --- /dev/null +++ b/llvm/test/MC/AArch64/SVE/directive-arch_extension-negative.s @@ -0,0 +1,7 @@ +// RUN: not llvm-mc -triple aarch64 -filetype asm -o - %s 2>&1 | FileCheck %s + +.arch_extension nosve + +ptrue p0.b, pow2 +// CHECK: error: instruction requires: sve +// CHECK-NEXT: ptrue p0.b, pow2 |