Skip to content

roundeven support for arm32 #73588

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

Open
vksnk opened this issue Nov 27, 2023 · 1 comment
Open

roundeven support for arm32 #73588

vksnk opened this issue Nov 27, 2023 · 1 comment

Comments

@vksnk
Copy link

vksnk commented Nov 27, 2023

We've run into this issue in one of the Halide tests with the following error:

LLVM ERROR: Cannot select: t8: v4f32 = froundeven nnan ninf nsz contract afn reassoc t7

Isolated test case:

target datalayout = "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64"
target triple = "arm--linux-gnueabihf"

declare <4 x float> @llvm.roundeven.v4f32(<4 x float>)
declare ptr @blah(<4 x float>)

define void @foo() {
entry:
  %v0 = tail call reassoc nnan ninf nsz contract afn <4 x float> @llvm.roundeven.v4f32(<4 x float> poison)
  %out = tail call ptr @blah(<4 x float> %v0)
  ret void
}
@llvmbot
Copy link
Member

llvmbot commented Nov 27, 2023

@llvm/issue-subscribers-backend-arm

Author: Volodymyr Kysenko (vksnk)

We've run into this issue in one of the Halide tests with the following error:
LLVM ERROR: Cannot select: t8: v4f32 = froundeven nnan ninf nsz contract afn reassoc t7

Isolated test case:

target datalayout = "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64"
target triple = "arm--linux-gnueabihf"

declare &lt;4 x float&gt; @<!-- -->llvm.roundeven.v4f32(&lt;4 x float&gt;)
declare ptr @<!-- -->blah(&lt;4 x float&gt;)

define void @<!-- -->foo() {
entry:
  %v0 = tail call reassoc nnan ninf nsz contract afn &lt;4 x float&gt; @<!-- -->llvm.roundeven.v4f32(&lt;4 x float&gt; poison)
  %out = tail call ptr @<!-- -->blah(&lt;4 x float&gt; %v0)
  ret void
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants