Skip to content

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

@llvmbot

Description

@llvmbot
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions