xref: /llvm-project/llvm/test/MC/Hexagon/PacketRules/restrict_slot1_aok.s (revision 252c42354eca54274ed7b10c32c73c6937478e8b)
1# RUN: not llvm-mc -triple=hexagon -filetype=asm %s 2>&1 | FileCheck %s
2
3{ r0=sub(#1,r0)
4  r1=sub(#1, r0)
5  r2=memw(r0)
6  dczeroa(r0) }
7# CHECK: 5:3: note: Instruction was restricted from being in slot 1
8# CHECK: 6:3: note: Instruction can only be combined with an ALU instruction in slot 1
9# CHECK: 6:15: error: invalid instruction packet: slot error
10