summary refs log tree commit diff stats
path: root/results/classifier/011/semantic/gitlab_semantic_addsubps
diff options
context:
space:
mode:
authorChristian Krinitsin <mail@krinitsin.com>2025-06-06 09:15:28 +0000
committerChristian Krinitsin <mail@krinitsin.com>2025-06-06 09:15:28 +0000
commitd0af66c2d76056b173294fc81cdfc47305e4e2a7 (patch)
tree04414c325574a99bc3cd3f1f354786f1b24f06de /results/classifier/011/semantic/gitlab_semantic_addsubps
parent140a79ffee69434ba0fbfde4cefb9fe5e82d93b4 (diff)
downloadqemu-analysis-d0af66c2d76056b173294fc81cdfc47305e4e2a7.tar.gz
qemu-analysis-d0af66c2d76056b173294fc81cdfc47305e4e2a7.zip
add new results
Diffstat (limited to 'results/classifier/011/semantic/gitlab_semantic_addsubps')
-rw-r--r--results/classifier/011/semantic/gitlab_semantic_addsubps52
1 files changed, 52 insertions, 0 deletions
diff --git a/results/classifier/011/semantic/gitlab_semantic_addsubps b/results/classifier/011/semantic/gitlab_semantic_addsubps
new file mode 100644
index 000000000..e045ffeec
--- /dev/null
+++ b/results/classifier/011/semantic/gitlab_semantic_addsubps
@@ -0,0 +1,52 @@
+semantic: 0.513
+other: 0.170
+device: 0.065
+debug: 0.047
+graphic: 0.035
+vnc: 0.027
+performance: 0.024
+permissions: 0.024
+PID: 0.021
+files: 0.020
+boot: 0.017
+socket: 0.015
+network: 0.013
+KVM: 0.009
+semantic: 0.848
+debug: 0.039
+files: 0.020
+other: 0.019
+PID: 0.013
+performance: 0.011
+network: 0.009
+device: 0.007
+permissions: 0.007
+boot: 0.007
+socket: 0.006
+vnc: 0.005
+graphic: 0.005
+KVM: 0.004
+
+x86 SSE/SSE2/SSE3 instruction semantic bugs with NaN
+
+Description of problem
+The result of SSE/SSE2/SSE3 instructions with NaN is different from the CPU. From Intel manual Volume 1 Appendix D.4.2.2, they defined the behavior of such instructions with NaN. But I think QEMU did not implement this semantic exactly because the byte result is different.
+
+Steps to reproduce
+
+Compile this code
+
+void main() {
+    asm("mov rax, 0x000000007fffffff; push rax; mov rax, 0x00000000ffffffff; push rax; movdqu XMM1, [rsp];");
+    asm("mov rax, 0x2e711de7aa46af1a; push rax; mov rax, 0x7fffffff7fffffff; push rax; movdqu XMM2, [rsp];");
+    asm("addsubps xmm1, xmm2");
+}
+
+Execute and compare the result with the CPU. This problem happens with other SSE/SSE2/SSE3 instructions specified in the manual, Volume 1 Appendix D.4.2.2.
+
+CPU xmm1[3] = 0xffffffff
+
+QEMU xmm1[3] = 0x7fffffff
+
+Additional information
+This bug is discovered by research conducted by KAIST SoftSec.