aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tcg')
-rw-r--r--tests/tcg/arm/fcvt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/tcg/arm/fcvt.c b/tests/tcg/arm/fcvt.c
index d8c61cd..ecebbb0 100644
--- a/tests/tcg/arm/fcvt.c
+++ b/tests/tcg/arm/fcvt.c
@@ -427,10 +427,9 @@ int main(int argc, char *argv[argc])
/* And now with ARM alternative FP16 */
#if defined(__arm__)
- /* See glibc sysdeps/arm/fpu_control.h */
- asm("mrc p10, 7, r1, cr1, cr0, 0\n\t"
+ asm("vmrs r1, fpscr\n\t"
"orr r1, r1, %[flags]\n\t"
- "mcr p10, 7, r1, cr1, cr0, 0\n\t"
+ "vmsr fpscr, r1"
: /* no output */ : [flags] "n" (1 << 26) : "r1" );
#else
asm("mrs x1, fpcr\n\t"