llvm-project/llvm/test/CodeGen/Hexagon/newvaluejump-float.mir
Fangrui Song 2208c97c1b [Hexagon,test] Change llc -march= to -mtriple=
Similar to 806761a7629df268c8aed49657aeccffa6bca449

-mtriple= specifies the full target triple while -march= merely sets the
architecture part of the default target triple, leaving a target triple which
may not make sense.

Therefore, -march= is error-prone and not recommended for tests without a target
triple. The issue has been benign as we recognize $unknown-apple-darwin as ELF instead
of rejecting it outrightly.
2024-12-15 10:20:22 -08:00

20 lines
439 B
YAML

# RUN: llc -mtriple=hexagon -run-pass=hexagon-nvj %s -o - | FileCheck %s
# Check that we don't generate a new-value jump for a floating-point
# instruction.
# CHECK-NOT: J4_cmpgti_t_jumpnv_t
---
name: fred
tracksRegLiveness: true
body: |
bb.0:
liveins: $d0
$r0 = F2_conv_df2w_chop $d0, implicit $usr
$p0 = C2_cmpgti $r0, 30
J2_jumpt $p0, %bb.1, implicit-def $pc
bb.1:
J2_jumpr $r31, implicit-def $pc
...