Commit 3135c94b authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

test: Add some basic fpu operation

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
parent 99466eb3
...@@ -226,8 +226,9 @@ int main(int argc, char *argv[]) ...@@ -226,8 +226,9 @@ int main(int argc, char *argv[])
} else { } else {
long buf = 0xdeadbeef; long buf = 0xdeadbeef;
while (1) { while (1) {
float res = 0.9;
*(unsigned long *)mmap_anon_sh = 0x33333333; *(unsigned long *)mmap_anon_sh = 0x33333333;
printf("ping: %d\n", getpid()); printf("ping: %d %f\n", getpid(), res + (float)(unsigned long)mmap_anon_sh);
write(pipefd[1], &buf, sizeof(buf)); write(pipefd[1], &buf, sizeof(buf));
sleep(10); sleep(10);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment