Skip to content

Commit bf3c986

Browse files
authored
SIMD testing: Revise immediate integer literal unroll code to be more systematic about which bit patterns to test. (#24400)
The original literal value selection was somewhat ad hoc.
1 parent 6f615f5 commit bf3c986

File tree

1 file changed

+24
-23
lines changed

1 file changed

+24
-23
lines changed

test/sse/test_sse.h

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -613,29 +613,30 @@ __m128 ExtractIntInRandomOrder(unsigned int *arr, int i, int n, int prime) {
613613
}
614614

615615
#define const_int8_unroll(Ret_type, F, func) \
616-
F(Ret_type, func, 0); \
617-
F(Ret_type, func, 1); \
618-
F(Ret_type, func, 2); \
619-
F(Ret_type, func, 3); \
620-
F(Ret_type, func, 5); \
621-
F(Ret_type, func, 7); \
622-
F(Ret_type, func, 11); \
623-
F(Ret_type, func, 13); \
624-
F(Ret_type, func, 15); \
625-
F(Ret_type, func, 16); \
626-
F(Ret_type, func, 17); \
627-
F(Ret_type, func, 23); \
628-
F(Ret_type, func, 29); \
629-
F(Ret_type, func, 31); \
630-
F(Ret_type, func, 37); \
631-
F(Ret_type, func, 43); \
632-
F(Ret_type, func, 47); \
633-
F(Ret_type, func, 59); \
634-
F(Ret_type, func, 127); \
635-
F(Ret_type, func, 128); \
636-
F(Ret_type, func, 191); \
637-
F(Ret_type, func, 254); \
638-
F(Ret_type, func, 255);
616+
F(Ret_type, func, 0b00000000); \
617+
F(Ret_type, func, 0b00000001); \
618+
F(Ret_type, func, 0b00000010); \
619+
F(Ret_type, func, 0b00000100); \
620+
F(Ret_type, func, 0b00001000); \
621+
F(Ret_type, func, 0b00010000); \
622+
F(Ret_type, func, 0b00100000); \
623+
F(Ret_type, func, 0b01000000); \
624+
F(Ret_type, func, 0b10000000); \
625+
F(Ret_type, func, 0b10101010); \
626+
F(Ret_type, func, 0b01010101); \
627+
F(Ret_type, func, 0b11001100); \
628+
F(Ret_type, func, 0b00110011); \
629+
F(Ret_type, func, 0b00001111); \
630+
F(Ret_type, func, 0b11110000); \
631+
F(Ret_type, func, 0b01111111); \
632+
F(Ret_type, func, 0b10111111); \
633+
F(Ret_type, func, 0b11011111); \
634+
F(Ret_type, func, 0b11101111); \
635+
F(Ret_type, func, 0b11110111); \
636+
F(Ret_type, func, 0b11111011); \
637+
F(Ret_type, func, 0b11111101); \
638+
F(Ret_type, func, 0b11111110); \
639+
F(Ret_type, func, 0b11111111);
639640

640641
#define const_int5_full_unroll(Ret_type, F, func) \
641642
F(Ret_type, func, 0); \

0 commit comments

Comments
 (0)