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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [sparc/] [wrgsr.c] - Rev 801

Go to most recent revision | Compare with Previous | Blame | View Log

/* { dg-do compile } */
/* { dg-options "-O -mcpu=ultrasparc -mvis" } */
 
void set_gsr (void)
{
	__builtin_vis_write_gsr (2 << 3);
}
 
void set_gsr2 (long x)
{
	__builtin_vis_write_gsr (x);
}
 
/* { dg-final { scan-assembler "wr\t%g0, 16, %gsr" } } */
/* { dg-final { scan-assembler "wr\t%g0, %" } } */
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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