Skip to content

[AMDGPU] illegal VGPR to SGPR copy #134463

@BaoshanPang

Description

@BaoshanPang

llc fail to compile this function:

define amdgpu_ps <4 x i32> @v_test(<4 x i32> %src0, <4 x i32> %bit.index) {
  %set.bit.at.index = shl <4 x i32> <i32 1, i32 1, i32 1, i32 1>, %bit.index
  %or = or <4 x i32> %src0, %set.bit.at.index
  ret <4 x i32> %or
}

https://godbolt.org/z/fhKTa76zn

llc works fine with option "--global-isel".

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