[Hexagon] Add missing early architecture features to V81 processor (#183499)

V81 was missing ArchV5, ArchV55, ArchV60, and ArchV62 in its feature
list, causing instructions requiring these architecture versions to fail
during compilation.
This commit is contained in:
pkarveti 2026-02-26 20:55:18 +05:30 committed by GitHub
parent d161a220bc
commit 6f736e2cd9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 18 additions and 2 deletions

View File

@ -499,8 +499,8 @@ def : Proc<"hexagonv79", HexagonModelV79,
FeatureCompound, FeatureDuplex, FeatureMemNoShuf, FeatureMemops,
FeatureNVJ, FeatureNVS, FeaturePackets, FeatureSmallData]>;
def : Proc<"hexagonv81", HexagonModelV81,
[ArchV65, ArchV66, ArchV67, ArchV68, ArchV69, ArchV71, ArchV73,
ArchV75, ArchV79, ArchV81,
[ArchV5, ArchV55, ArchV60, ArchV62, ArchV65, ArchV66, ArchV67,
ArchV68, ArchV69, ArchV71, ArchV73, ArchV75, ArchV79, ArchV81,
FeatureCompound, FeatureDuplex, FeatureMemNoShuf, FeatureMemops,
FeatureNVJ, FeatureNVS, FeaturePackets, FeatureSmallData]>;

View File

@ -0,0 +1,16 @@
; RUN: llc -mtriple=hexagon -mcpu=hexagonv81 -mattr=+hvxv81,+hvx-length128b,+hvx-ieee-fp,-packets < %s | FileCheck %s
; Before the fix, V81 processor definition in Hexagon.td was missing early
; architecture features (ArchV5, ArchV55, ArchV60, ArchV62), causing compilation
; to fail with:
; "fatal error: Attempting to emit S6_vsplatrbp instruction but the
; Feature_HasV62 predicate(s) are not met"
; CHECK-LABEL: test_hvx_v16i8_return:
; CHECK: vsplatb
define <16 x i8> @test_hvx_v16i8_return() {
entry:
ret <16 x i8> zeroinitializer
}