blob: 7b4d71d72d8964f6da0d0604bf59aeb4a895df43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* Test the fpscr builtins. */
/* { dg-do compile } */
/* { dg-require-effective-target arm_fp_ok } */
/* { dg-skip-if "need fp instructions" { *-*-* } { "-mfloat-abi=soft" } { "" } } */
/* { dg-add-options arm_fp } */
void
test_fpscr ()
{
volatile unsigned int status = __builtin_arm_get_fpscr ();
__builtin_arm_set_fpscr (status);
}
/* { dg-final { scan-assembler "mrc\tp10, 7, r\[0-9\]+, cr1, cr0, 0" } } */
/* { dg-final { scan-assembler "mcr\tp10, 7, r\[0-9\]+, cr1, cr0, 0" } } */
|