blob: 9186f5e6adec5d4cca72f778f38cf5f5a3d706da [file] [log] [blame]
# RUN: llvm-mc -triple=xtensa -mattr=+nsa -disassemble %s | FileCheck -check-prefixes=CHECK-NSA %s
# RUN: not llvm-mc -triple=xtensa -disassemble %s 2>&1 | FileCheck --implicit-check-not=warning: -check-prefixes=CHECK-CORE %s
## Verify that binary code is correctly disassembled with
## nsa option enabled. Also verify that dissasembling without
## nsa option generates warnings.
[0x30,0xe4,0x40]
# CHECK-NSA: nsa a3, a4
# CHECK-CORE: [[#@LINE-2]]:2: warning: invalid instruction encoding
[0x30,0xf4,0x40]
# CHECK-NSA: nsau a3, a4
# CHECK-CORE: [[#@LINE-2]]:2: warning: invalid instruction encoding