On my system, I can clearly see it selecting the sse2 implementation (there is no AVX implementation of strstr)
$ gdb ./strstr (gdb) break strstr Breakpoint 1 at 0x1040 (gdb) run aa Starting program: /home/adconrad/Downloads/strstr aa
Breakpoint 1, __strstr_sse2_unaligned () at ../sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S
On my system, I can clearly see it selecting the sse2 implementation (there is no AVX implementation of strstr)
$ gdb ./strstr Downloads/ strstr aa
(gdb) break strstr
Breakpoint 1 at 0x1040
(gdb) run aa
Starting program: /home/adconrad/
Breakpoint 1, __strstr_ sse2_unaligned () at ../sysdeps/ x86_64/ multiarch/ strstr- sse2-unaligned. S