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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -mbmi " } */
3
/* { dg-final { scan-assembler "andn\[^\\n]*(%|)eax" } } */
4
/* { dg-final { scan-assembler "bextr\[^\\n]*(%|)eax" } } */
5
/* { dg-final { scan-assembler "blsi\[^\\n]*(%|)eax" } } */
6
/* { dg-final { scan-assembler "blsmsk\[^\\n]*(%|)eax" } } */
7
/* { dg-final { scan-assembler "blsr\[^\\n]*(%|)eax" } } */
8
/* { dg-final { scan-assembler "tzcntl\[^\\n]*(%|)eax" } } */
9
 
10
#include <x86intrin.h>
11
 
12
unsigned int
13
func_andn32 (unsigned int X, unsigned int Y)
14
{
15
  return __andn_u32(X, Y);
16
}
17
 
18
unsigned int
19
func_bextr32 (unsigned int X, unsigned int Y)
20
{
21
  return __bextr_u32(X, Y);
22
}
23
 
24
unsigned int
25
func_blsi32 (unsigned int X)
26
{
27
  return __blsi_u32(X);
28
}
29
 
30
unsigned int
31
func_blsmsk32 (unsigned int X)
32
{
33
  return __blsmsk_u32(X);
34
}
35
 
36
unsigned int
37
func_blsr32 (unsigned int X)
38
{
39
  return __blsr_u32(X);
40
}
41
 
42
unsigned int
43
func_tzcnt32 (unsigned int X)
44
{
45
  return __tzcnt_u32(X);
46
}

powered by: WebSVN 2.1.0

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