Skip to content

[RISCV] Cannot select nxv2bf16 = RISCVISD::VFSLIDE1UP_VL #114893

Closed
@topperc

Description

@topperc

This test case give a cannot select error with -mattr=+zfbfmin,+zvfbfmin,+zvl64b

define <2 x bfloat> @vslide1up_2xbfloat(<2 x bfloat> %v, bfloat %b) {
  %vb = insertelement <2 x bfloat> poison, bfloat %b, i64 0
  %v1 = shufflevector <2 x bfloat> %v, <2 x bfloat> %vb, <2 x i32> <i32 2, i32 0
  ret <2 x bfloat> %v1
}

We need to disable lowerVECTOR_SHUFFLEAsVSlide1 for bf16. We probably also need to disable it for f16 without Zfh.

CC: @lukel97 @preames

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions