brintos

brintos / llvm-project-archived public Read only

0
0
Text · 627 B · c10a3b6 Raw
15 lines · plain
1# RUN: llvm-mc -triple=xtensa -mattr=+mul16 -disassemble %s | FileCheck -check-prefixes=CHECK-MUL16 %s2# RUN: not llvm-mc -triple=xtensa -disassemble %s 2>&1 | FileCheck --implicit-check-not=warning: -check-prefixes=CHECK-CORE %s3 4## Verify that binary code is correctly disassembled with5## mul16 option enabled. Also verify that dissasembling without6## mul16 option generates warnings.7 8[0x50,0x34,0xd1]9# CHECK-MUL16: mul16s a3, a4, a510# CHECK-CORE: [[#@LINE-2]]:2: warning: invalid instruction encoding11 12[0x50,0x34,0xc1]13# CHECK-MUL16: mul16u a3, a4, a514# CHECK-CORE: [[#@LINE-2]]:2: warning: invalid instruction encoding15