Skip to content

s390x: vfchsbs and vfchesbs error with only +vector #130424

@folkertdev

Description

@folkertdev

These LLVM functions should implement the semantics of float compare (even if they are inefficient).

https://godbolt.org/z/38PYEWW77

Most of the functions do indeed emulate for vector_float when only vector (and not vector-enhancements-1 is available, but these don't.

rustc-LLVM ERROR: Cannot select: 0x7da6699a12a0: v4f32,i32 = SystemZISD::VFCMPHS 0x7da6699a1070, 0x7da6699a1150, example.rs:37:5
  0x7da6699a1070: v4f32,ch = CopyFromReg 0x7da669811520, Register:v4f32 %0
    0x7da6699a1000: v4f32 = Register %0
  0x7da6699a1150: v4f32,ch = CopyFromReg 0x7da669811520, Register:v4f32 %1
    0x7da6699a10e0: v4f32 = Register %1
In function: vec_float_compare

Metadata

Metadata

Assignees

No one assigned

    Labels

    backend:SystemZquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions