ssetype-1.c
来自「linux下编程用 编译软件」· C语言 代码 · 共 36 行
C
36 行
/* { dg-do compile { target i?86-*-* x86_64-*-* } } *//* { dg-options "-O2 -msse2 -march=k8" } *//* { dg-final { scan-assembler "andpd\[^\\n\]*magic" } } *//* { dg-final { scan-assembler "andnpd\[^\\n\]*magic" } } *//* { dg-final { scan-assembler "xorpd\[^\\n\]*magic" } } *//* { dg-final { scan-assembler "orpd\[^\\n\]*magic" } } *//* { dg-final { scan-assembler-not "movdqa" } } *//* { dg-final { scan-assembler "movapd\[^\\n\]*magic" } } *//* Verify that we generate proper instruction with memory operand. */#include <xmmintrin.h>static __m128d magic_a, magic_b;__m128dt1(void){return _mm_and_pd (magic_a,magic_b);}__m128dt2(void){return _mm_andnot_pd (magic_a,magic_b);}__m128dt3(void){return _mm_or_pd (magic_a,magic_b);}__m128dt4(void){return _mm_xor_pd (magic_a,magic_b);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?