| 1 |
# RUN: llvm-mc -triple=hexagon -mcpu=hexagonv65 -filetype=obj %s | llvm-objdump --no-print-imm-hex --mcpu=hexagonv65 -d - | FileCheck --implicit-check-not='{' %s |
| 2 |
|
| 3 |
# This case requires compounding only some of the instructions which are |
| 4 |
# possible compounds. Compounding all possible opcodes is ideal for code size |
| 5 |
# but does not always result in a packet with a valid shuffle, whereas the |
| 6 |
# non-compounded instructions may be a valid shuffle. |
| 7 |
|
| 8 |
foo: |
| 9 |
{ r0=c0 |
| 10 |
p0=cmp.eq(r0,#0); if (p0.new) jump:nt foo |
| 11 |
jump foo |
| 12 |
r1=r0 } |
| 13 |
|
| 14 |
# CHECK-LABEL: <foo>: |
| 15 |
# CHECK-NEXT: { r0 = sa0 |
| 16 |
# CHECK-NEXT: p0 = cmp.eq(r0,#0); if (p0.new) jump:nt 0x0 |
| 17 |
# CHECK-NEXT: jump 0x0 |
| 18 |
# CHECK-NEXT: r1 = r0 } |
| 19 |
|