Issue 235528
Summary [ARM] `fpext` of `bf16` vector crashes
Labels new issue
Assignees
Reporter folkertdev
    https://godbolt.org/z/56jvncYhd

```llvm
; llc -mtriple=arm -mattr=+neon,+bf16
define <4 x float> @fpext_v4(<4 x bfloat> %a) {
  %e = fpext <4 x bfloat> %a to <4 x float>
  ret <4 x float> %e
}
```

The vector type should be legal with those target features, but we get: 

```
LLVM ERROR: Cannot select: 0x25725610: v4f32 = fp_extend 0x257255a0
  0x257255a0: v4bf16 = bitcast 0x25725530
    0x25725530: f64 = ARMISD::VMOVDRR 0x257253e0, 0x257254c0
      0x257253e0: i32,ch = CopyFromReg 0x256e8528, Register:i32 %0
      0x257254c0: i32,ch = CopyFromReg 0x256e8528, Register:i32 %1
In function: fpext_v4
```

The same happens for `<8 x bfloat>`. In general I believe `bf16` vector support in arm has some holes.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to