Skip to content

[X86] llc crashed at -O0 and triggered assertion Node is not in map! #162230

@XChy

Description

@XChy

Reproducer: https://godbolt.org/z/5eYj9dTEK
Testcase:

define i32 @f() #0 {
entry:
  %0 = load <32 x i64>, ptr null, align 256
  %shuffle = shufflevector <32 x i64> zeroinitializer, <32 x i64> %0, <16 x i32> <i32 27, i32 6, i32 56, i32 54, i32 56, i32 12, i32 24, i32 54, i32 58, i32 57, i32 37, i32 21, i32 9, i32 16, i32 50, i32 29>
  %conv = trunc <16 x i64> %shuffle to <16 x i32>
  %shuffle1 = shufflevector <32 x i64> %0, <32 x i64> zeroinitializer, <16 x i32> <i32 27, i32 6, i32 56, i32 4, i32 6, i32 2, i32 4, i32 4, i32 58, i32 7, i32 7, i32 1, i32 9, i32 6, i32 0, i32 9>
  %conv2 = trunc <16 x i64> %shuffle1 to <16 x i32>
  %shuffle3 = shufflevector <16 x i32> %conv, <16 x i32> %conv2, <32 x i32> <i32 3, i32 9, i32 7, i32 4, i32 17, i32 9, i32 6, i32 9, i32 4, i32 11, i32 9, i32 22, i32 5, i32 7, i32 4, i32 1, i32 5, i32 0, i32 8, i32 2, i32 11, i32 3, i32 31, i32 19, i32 4, i32 8, i32 0, i32 3, i32 28, i32 26, i32 10, i32 4>
  %conv4 = sext <32 x i32> %shuffle3 to <32 x i64>
  store <32 x i64> %conv4, ptr null, align 256
  ret i32 0
}

attributes #0 = { "target-features"="+avx" }

Reproducible commit: 0dd8f32

cc @RKSimon

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions