[NFC][RemoveDIs] Prefer iterators over inst-pointers in InstCombine
[llvm-project.git] / llvm / test / CodeGen / Hexagon / newvaluejump-c4.mir
blobf432f049e9f8b64643cd968dd5d3bc44c7da92ad
1 # RUN: llc -march=hexagon -run-pass hexagon-nvj %s -o - | FileCheck %s
3 ---
4 # CHECK-LABEL: name: test0
5 # CHECK: J4_cmpeqi_f_jumpnv_t killed $r1, 0
6 name: test0
7 tracksRegLiveness: true
9 body: |
10   bb.0:
11     liveins: $r0
12         $r1 = A2_addi $r0, -1
13         $p0 = C4_cmpneqi killed $r1, 0
14         J2_jumpt killed $p0, %bb.1, implicit-def $pc
15   bb.1:
16 ...
18 ---
19 # CHECK-LABEL: name: test1
20 # CHECK: J4_cmpgti_f_jumpnv_t killed $r1, 27
21 name: test1
22 tracksRegLiveness: true
24 body: |
25   bb.0:
26     liveins: $r0
27         $r1 = A2_addi $r0, -1
28         $p0 = C4_cmpltei killed $r1, 27
29         J2_jumpt killed $p0, %bb.1, implicit-def $pc
30   bb.1:
31 ...
33 ---
34 # CHECK-LABEL: name: test2
35 # CHECK: J4_cmpgtui_f_jumpnv_t killed $r1, 31
36 name: test2
37 tracksRegLiveness: true
39 body: |
40   bb.0:
41     liveins: $r0
42         $r1 = A2_addi $r0, -1
43         $p0 = C4_cmplteui killed $r1, 31
44         J2_jumpt killed $p0, %bb.1, implicit-def $pc
45   bb.1:
46 ...