| 1 |
# RUN: not llvm-mc -triple=hexagon -mhvx -filetype=asm %s 2>%t; FileCheck %s <%t |
| 2 |
|
| 3 |
{ r0=memw(r1=##0) |
| 4 |
memw(r0)=r1.new } |
| 5 |
# CHECK: 3:3: note: Absolute-set registers cannot be a new-value producer |
| 6 |
# CHECK: 4:3: error: Instruction does not have a valid new register producer |
| 7 |
|
| 8 |
{ r1:0=r1:0 |
| 9 |
memw(r0)=r0.new } |
| 10 |
# CHECK: 8:3: note: Double registers cannot be new-value producers |
| 11 |
# CHECK: 9:3: error: Instruction does not have a valid new register producer |
| 12 |
|
| 13 |
{ r1=memw(r0++m0) |
| 14 |
memw(r0)=r0.new } |
| 15 |
# CHECK: 13:3: note: Auto-increment registers cannot be a new-value producer |
| 16 |
# CHECK: 14:3: error: Instruction does not have a valid new register producer |
| 17 |
|
| 18 |
{ r0=sfadd(r0,r0) |
| 19 |
if (cmp.eq(r0.new,r0)) jump:t 0x0 } |
| 20 |
# CHECK: 18:3: note: FPU instructions cannot be new-value producers for jumps |
| 21 |
# CHECK: 19:3: error: Instruction does not have a valid new register producer |
| 22 |
|
| 23 |
{ v0=vmem(r0++m0) |
| 24 |
memw(r0)=r0.new } |
| 25 |
# CHECK: 23:3: note: Auto-increment registers cannot be a new-value producer |
| 26 |
# CHECK: 24:3: error: Instruction does not have a valid new register producer |
| 27 |
|
| 28 |
{ if (p0) r0=r0 |
| 29 |
if (!p0) memw(r0)=r0.new } |
| 30 |
# CHECK: 28:3: note: Register producer has the opposite predicate sense as consumer |
| 31 |
# CHECK: 29:3: error: Instruction does not have a valid new register producer |
| 32 |
|
| 33 |
{ if (p0) r0=r0 |
| 34 |
memw(r0)=r0.new } |
| 35 |
# CHECK: 33:3: note: Register producer is predicated and consumer is unconditional |
| 36 |
# CHECK: 34:3: error: Instruction does not have a valid new register producer |
| 37 |
|
| 38 |
{ if (p0) r0=r0 |
| 39 |
if (cmp.eq(r0.new,r0)) jump:t 0x0 } |
| 40 |
# CHECK: 38:3: note: Register producer is predicated and consumer is unconditional |
| 41 |
# CHECK: 39:3: error: Instruction does not have a valid new register producer |
| 42 |
|
| 43 |
{ r0=memw(r1=##0) |
| 44 |
if (p0) memw(r0)=r1.new } |
| 45 |
# CHECK: 43:3: note: Absolute-set registers cannot be a new-value producer |
| 46 |
# CHECK: 44:3: error: Instruction does not have a valid new register producer |