Created
June 6, 2012 22:30
-
-
Save ssvb/2885230 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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