Skip to content

Commit 6755044

Browse files
committed
Reviewer suggestions
1 parent a6937ac commit 6755044

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

clang/test/AST/ByteCode/vectors.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ namespace Vector {
5656
static_assert(__builtin_vectorelements(v2) == (32 / sizeof(double)), "");
5757
}
5858

59+
namespace {
60+
typedef float __attribute__((vector_size(16))) VI42;
61+
constexpr VI42 A2 = {1.f, 2.f, 3.f, 4.f};
62+
}
63+
5964
namespace BoolToSignedIntegralCast{
6065
typedef __attribute__((__ext_vector_type__(4))) unsigned int int4;
6166
constexpr int4 intsT = (int4)true;

clang/test/CodeGen/2007-01-20-VectorICE.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ typedef int __v4si __attribute__((__vector_size__(16)));
66

77
__v2di bar(void);
88
void foo(int X, __v4si *P) {
9-
*P = X == 2 ? (__v4si)(bar()) : (__v4si)(bar());
9+
*P = X == 2 ? (__v4si)bar() : (__v4si)bar();
1010
}
1111

0 commit comments

Comments
 (0)