1# RUN: llvm-mc -arch=hexagon -filetype=asm %s 2>%t; FileCheck %s <%t 2# 3 4# Check that proper packets are not wrongly flagged as invalid. 5 61-3-4-f: 7 { 8 r3 = memub(r2++#1) 9 if (cmp.eq(r3.new,#0)) jump:nt . 10 jumpr lr 11 r4 = #4 12 } 13# CHECK-NOT: rror: invalid instruction packet 14 151-3-f-f: 16 { 17 r3 = memub(r2++#1) 18 if (cmp.eq(r3.new,#0)) jump:nt . 19 r5 = #5 20 r4 = #4 21 } 22# CHECK-NOT: rror: invalid instruction packet 23 24# Special case of a fat packet that will slim when a compound is formed. 253-3-8-c: 26 { LOOP0(3-3-8-c, R7) 27 P0 = CMP.GT(R7, #0) 28 IF (!P0.NEW) JUMP:NT . 29 R21:20 = MEMD(R0+#16) 30 R23:22 = MEMD(R0+#24) 31 } 32# CHECK-NOT: rror: invalid instruction packet 33 341-f-f-f: 35 { 36 r3 = #3 37 if (cmp.eq(r3.new,#0)) jump:nt . 38 r5 = #5 39 r4 = #4 40 } 41# CHECK-NOT: rror: invalid instruction packet 42 434: 44 jumpr lr 45# CHECK-NOT: rror: invalid instruction packet 46 47f-f-f-f: 48 { 49 r3 = #3 50 r2 = #2 51 r5 = #5 52 r4 = #4 53 } 54# CHECK-NOT: rror: invalid instruction packet 55 56