libstdc++: Move gcc.gnu.org and sourceware.org links to https
[official-gcc.git] / gcc / testsuite / gcc.target / arm / fpscr.c
blob4c3eaf7fcf75ad8582071ecb110fd1e4976a3b24
1 /* Test the fpscr builtins. */
3 /* { dg-do compile } */
4 /* { dg-require-effective-target arm_fp_ok } */
5 /* { dg-skip-if "need fp instructions" { *-*-* } { "-mfloat-abi=soft" } { "" } } */
6 /* { dg-add-options arm_fp } */
8 void
9 test_fpscr (void)
11 unsigned status;
13 __builtin_arm_set_fpscr (0);
14 status = __builtin_arm_get_fpscr ();
15 __builtin_arm_set_fpscr (status);
18 /* { dg-final { scan-assembler "mrc\tp10, 7, r\[0-9\]+, cr1, cr0, 0" } } */
19 /* { dg-final { scan-assembler-times "mcr\tp10, 7, r\[0-9\]+, cr1, cr0, 0" 2 } } */