llvm-mirror/test/MC/ARM/directive-arch_extension-unsupported.s
Oliver Stannard 2003c0b073 [ARM] Improve error messages for .arch_extension directive
- More informative message when extension name is not an identifier token.
- Stop parsing directive if extension is unknown (avoid duplicate error
  messages).
- Report unsupported extensions with a source location, rather than
  report_fatal_error.

Differential Revision: https://reviews.llvm.org/D22806

llvm-svn: 276748
2016-07-26 14:24:43 +00:00

26 lines
759 B
ArmAsm

@ RUN: not llvm-mc -triple armv7--none-eabi -filetype asm -o /dev/null 2>&1 %s | FileCheck %s
.arch_extension os
CHECK: error: unsupported architectural extension: os
.arch_extension iwmmxt
CHECK: error: unsupported architectural extension: iwmmxt
.arch_extension iwmmxt2
CHECK: error: unsupported architectural extension: iwmmxt2
.arch_extension maverick
CHECK: error: unsupported architectural extension: maverick
.arch_extension xscale
CHECK: error: unsupported architectural extension: xscale
.arch_extension invalid_extension_name
CHECK: error: unknown architectural extension: invalid_extension_name
.arch_extension 42
CHECK: error: expected architecture extension name
.arch_extension
CHECK: error: expected architecture extension name