# RUN: llvm-mc -triple=xtensa -mattr=+coprocessor -disassemble %s | FileCheck -check-prefixes=CHECK-COPROCESSOR %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 ## Xtensa coprocessor option enabled. Also verify that dissasembling without ## Xtensa coprocessor option generates warnings. [0x20,0xe0,0x61] #CHECK-COPROCESSOR: xsr a2, cpenable #CHECK-CORE: [[#@LINE-2]]:2: warning: invalid instruction encoding