diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-12-17 13:10:50 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-12-17 13:10:50 -0800 |
commit | e416724fb3a92b1751d370601e7b8326d4228688 (patch) | |
tree | 1aaf7e75b735c17ecff5116a1196a501b93e8beb /pkg/sentry | |
parent | 3f4d8fefb45d75937292302e4c158f76da5c7ca8 (diff) | |
parent | 70b68bb058e2f3281ba0e245ca404f264cfc547b (diff) |
Merge pull request #1321 from lubinszARM:pr_testutils_vfp
PiperOrigin-RevId: 286042427
Diffstat (limited to 'pkg/sentry')
-rw-r--r-- | pkg/sentry/platform/kvm/testutil/testutil_arm64.s | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pkg/sentry/platform/kvm/testutil/testutil_arm64.s b/pkg/sentry/platform/kvm/testutil/testutil_arm64.s index 2cd28b2d2..0bebee852 100644 --- a/pkg/sentry/platform/kvm/testutil/testutil_arm64.s +++ b/pkg/sentry/platform/kvm/testutil/testutil_arm64.s @@ -50,6 +50,21 @@ TEXT ·SpinLoop(SB),NOSPLIT,$0 start: B start +TEXT ·FloatingPointWorks(SB),NOSPLIT,$0-8 + NO_LOCAL_POINTERS + FMOVD $(9.9), F0 + MOVD $SYS_GETPID, R8 // getpid + SVC + FMOVD $(9.9), F1 + FCMPD F0, F1 + BNE isNaN + MOVD $1, R0 + MOVD R0, ret+0(FP) + RET +isNaN: + MOVD $0, ret+0(FP) + RET + // MVN: bitwise logical NOT // This case simulates an application that modified R0-R30. #define TWIDDLE_REGS() \ |