# RUN: llvm-mc -triple=xtensa -mattr=+clamps -disassemble %s | FileCheck -check-prefixes=CHECK-CLAMPS %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
## clamps option enabled. Also verify that dissasembling without
## clamps option generates warnings.

[0x00,0x34,0x33]
# CHECK-CLAMPS: clamps a3, a4, 7
# CHECK-CORE: [[#@LINE-2]]:2: warning: invalid instruction encoding
