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

Compiler error when converting from vector of 2x32 to 2x64-bit int on POWER7 #50237

Closed
llvmbot opened this issue Jun 26, 2021 · 2 comments
Closed
Labels
backend:PowerPC bugzilla Issues migrated from bugzilla

Comments

@llvmbot
Copy link
Member

llvmbot commented Jun 26, 2021

Bugzilla Link 50893
Resolution FIXED
Resolved on Jul 16, 2021 05:50
Version trunk
OS Windows NT
Reporter LLVM Bugzilla Contributor
CC @nemanjai
Fixed by commit(s) 6a06dba

Extended Description

Reduced test case (on Compiler Explorer: https://godbolt.org/z/z84YY6G35):

#include <stdint.h>

typedef int32_t i32x2 attribute((vector_size(8)));
typedef int64_t i64x2 attribute((vector_size(16)));

i64x2 cvt(i32x2 a) {
return __builtin_convertvector(a, i64x2);
}

Looks like it started with clang 11.0; 10 works.

@llvmbot
Copy link
Member Author

llvmbot commented Jun 26, 2021

Sorry, I forgot to mention in the comment: make sure -mcpu=power7 is in the compiler flags. -mcpu=power6 and -mcpu=power8 both work.

@nemanjai
Copy link
Member

Fixed in 6a06dba.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 11, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend:PowerPC bugzilla Issues migrated from bugzilla
Projects
None yet
Development

No branches or pull requests

2 participants