Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zhengyang92 opened this issue Apr 9, 2024 · 0 comments
Open

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

zhengyang92 opened this issue Apr 9, 2024 · 0 comments
Assignees

Comments

@zhengyang92
Copy link
Collaborator

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

@zhengyang92 zhengyang92 self-assigned this Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant