Skip to content

missed support of llvm.x86.vcvtps2ph.128 #26

@zhengyang92

Description

@zhengyang92
declare <8 x i16> @llvm.x86.vcvtps2ph.128(<4 x float>, i32 immarg) #0

define i16 @cut(float %__n4, i1 %__n5, i16 %__n6) {
  br i1 %__n5, label %1, label %2

1:
  %__n0 = insertelement <4 x float> <float poison, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00>, float %__n4, i64 0
  %__n1 = tail call <8 x i16> @llvm.x86.vcvtps2ph.128(<4 x float> %__n0, i32 0)
  %__n2 = extractelement <8 x i16> %__n1, i64 0
  br label %2

2:
  %__n3 = phi i16 [ %__n2, %1 ], [ 0, %0 ]
  ret i16 %__n3

sink:
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(none) }

; stats -------------------------------------------------
; minotaur_rewrite: (copy (reservedconst i16 |i16 0|))
; minotaur_cost-before: 14
; minotaur_cost-after: 4
; minotaur_timestamp: 1712692564
; minotaur_fn: cut

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions