[ValueTracking] test trunc to i1 as condition in dominating condition. (NFC)
[llvm-project.git] / llvm / test / MC / Hexagon / bug_28748.s
blob24f24a796dc186315de70df94c3a999ef4081ac9
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
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.
8 foo:
9 { r0=c0
10 p0=cmp.eq(r0,#0); if (p0.new) jump:nt foo
11 jump foo
12 r1=r0 }
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 }