Skip to content

Instantly share code, notes, and snippets.

@ssvb
Created June 6, 2012 22:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssvb/2885230 to your computer and use it in GitHub Desktop.
Save ssvb/2885230 to your computer and use it in GitHub Desktop.
$ cat test_adds_epu16.c
#include <emmintrin.h>
__m128i x(__m128i a, __m128i b)
{
return _mm_adds_epu16(a, b);
}
$ gcc -O3 -c test_adds_epu16.c
$ objdump -d test_adds_epu16.o
0000000000000000 <x>:
0: 66 0f dd c1 paddusw %xmm1,%xmm0
4: c3 retq
$ pathcc -O3 -c test_adds_epu16.c
$ objdump -d test_adds_epu16.o
0000000000000000 <x>:
0: 66 0f ec c8 paddsb %xmm0,%xmm1
4: 66 0f 6f c1 movdqa %xmm1,%xmm0
8: c3 retq
9: 0f 1f 00 nopl (%rax)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment