OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [pr45336-3.c] - Blame information for rev 691

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
/* PR target/45336 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -msse4 -mtune=generic" } */
4
/* { dg-final { scan-assembler "movsbl" } } */
5
/* { dg-final { scan-assembler "(movswl|cwtl)" } } */
6
/* { dg-final { scan-assembler "pextrb" } } */
7
/* { dg-final { scan-assembler "pextrw" } } */
8
/* { dg-final { scan-assembler "pextrd" { target { ! x86_64-*-mingw* } } } } */
9
 
10
#include <smmintrin.h>
11
int foo8(__m128i x) { return (char) _mm_extract_epi8(x, 4); }
12
int foo16(__m128i x) { return (short) _mm_extract_epi16(x, 3); }
13
int foo32(__m128i x) { return _mm_extract_epi32(x, 2); }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.