You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clang/test/CodeGen/X86/builtin_test_helpers.h
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,16 @@ constexpr bool match_v4si(__m128i _v, int a, int b, int c, int d) {
25
25
return v[0] == a && v[1] == b && v[2] == c && v[3] == d;
26
26
}
27
27
28
+
constexprboolmatch_v8hi(__m128i _v, short a, short b, short c, short d, short e, short f, short g, short h) {
29
+
__v8hi v = (__v8hi)_v;
30
+
return v[0] == a && v[1] == b && v[2] == c && v[3] == d && v[4] == e && v[5] == f && v[6] == g && v[7] == h;
31
+
}
32
+
33
+
constexprboolmatch_v16qi(__m128i _v, char a, char b, char c, char d, char e, char f, char g, char h, char i, char j, char k, char l, char m, char n, char o, char p) {
34
+
__v16qi v = (__v16qi)_v;
35
+
return v[0] == a && v[1] == b && v[2] == c && v[3] == d && v[4] == e && v[5] == f && v[6] == g && v[7] == h && v[8] == i && v[9] == j && v[10] == k && v[11] == l && v[12] == m && v[13] == n && v[14] == o && v[15] == p;
36
+
}
37
+
28
38
constexprboolmatch_m256(__m256 v, float a, float b, float c, float d, float e, float f, float g, float h) {
29
39
return v[0] == a && v[1] == b && v[2] == c && v[3] == d && v[4] == e && v[5] == f && v[6] == g && v[7] == h;
0 commit comments