diff options
| author | KreitinnSoftware <80591934+KreitinnSoftware@users.noreply.github.com> | 2024-02-14 05:14:01 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-14 09:14:01 +0100 |
| commit | 549e042e678e0909c1a79325fb406fb0081ccac7 (patch) | |
| tree | f05a9323a5d22d14f60c3ce3bc6f61b3d9a579fb /tests/test12.c | |
| parent | c70581abc9380ab57deba3f8076e26191b5c2755 (diff) | |
| download | box64-549e042e678e0909c1a79325fb406fb0081ccac7.tar.gz box64-549e042e678e0909c1a79325fb406fb0081ccac7.zip | |
[CI] Add Android Tests (#1263)
* [CI] Add Android Tests * Remove a Build of Box64 that I placed and forgot to remove before * Fix some tests checking * Disable Test07 and Test17 for now * Comment set_tests_proprieties (I have forgotten) * Add mmx test and benchfloat for Android * Fix build for Clang-17 on non-Termux * Update NDK to 26b and add Termux Build/Testing * Revert to NDK 25b, something is wrong * Add -DTERMUX=1 to Termux Build * Add LD_LIBRARY_PATH for Termux Testing * Set LD_LIBRARY_PATH on QEMU_SET_ENV * Move data folder to current dir before testing on Termux * Copy Termux Data Libs for /data * Try to set QEMU_SET_ENV on GITHUB_ENV --------- Co-authored-by: Pablo Carlos <pablo@localhost.localdomain>
Diffstat (limited to 'tests/test12.c')
| -rw-r--r-- | tests/test12.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test12.c b/tests/test12.c index 4892a10d..abb94c06 100644 --- a/tests/test12.c +++ b/tests/test12.c @@ -20,6 +20,18 @@ int main(int argc, char **argv) printf("(angle_t)%f = %u == 0x%08X\n", d, u32, u32); int16_t a=0, b=0; + + #ifdef __ANDROID__ + asm volatile ( + "fldpi \n" + "fisttpl %0 \n" + : "=m" (a)); + asm volatile ( + "fldpi \n" + "fchs \n" + "fistpl %0 \n" + : "=m" (b)); + #else asm volatile ( "fldpi \n" "fisttp %0 \n" @@ -29,6 +41,8 @@ int main(int argc, char **argv) "fchs \n" "fistp %0 \n" : "=m" (b)); + #endif + printf("go PI trucated=%d, -PI rounded=%d\n", a, b); return 0; |