Skip to contentSkip to conversation

x86/math-emu, selftests: Add test for FISTTP insns

PATCH New Denys Vlasenko 2 participants 2 messages Sep 20, 2015 – Sep 21, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/math-emu, selftests: Add test for FISTTP insns

$ ./test_FISTTP_32
[RUN]	Testing fisttp instructions
[OK]	fisttp
CC Ingo Molnar <[email protected]>
CC Borislav Petkov <[email protected]>
CC "H. Peter Anvin" <[email protected]>
CC Andy Lutomirski <[email protected]>
CC Kees Cook <[email protected]>
---
 tools/testing/selftests/x86/Makefile      |   2 +-
 tools/testing/selftests/x86/test_FISTTP.c | 137 ++++++++++++++++++++++++++++++
 2 files changed, 138 insertions(+), 1 deletion(-)
 create mode 100644 tools/testing/selftests/x86/test_FISTTP.c
tools/testing/selftests/x86/Makefile +1 -1
index 7de4684..f981b36 100644
@@ -6,7 +6,7 @@ include ../lib.mk
 
 TARGETS_C_BOTHBITS := single_step_syscall sysret_ss_attrs ldt_gdt syscall_nt
 TARGETS_C_32BIT_ONLY := entry_from_vm86 syscall_arg_fault sigreturn test_syscall_vdso \
-    test_FCMOV test_FCOMI
+    test_FCMOV test_FCOMI test_FISTTP
 
 TARGETS_C_32BIT_ALL := $(TARGETS_C_BOTHBITS) $(TARGETS_C_32BIT_ONLY)
 BINARIES_32 := $(TARGETS_C_32BIT_ALL:%=%_32)
tools/testing/selftests/x86/test_FISTTP.c new file +137 -0

137 lines not on this page · raw message

Signature · 1 line
1.8.1.4
#1 lore raw

[tip:x86/fpu] x86/fpu/math-emu, selftests: Add test for FISTTP instructions

x86/fpu/math-emu, selftests: Add test for FISTTP instructions
Commit-ID:  a58e2ecd019d9ffb9f1813faf6151716fdecbae5
Gitweb:     http://git.kernel.org/tip/a58e2ecd019d9ffb9f1813faf6151716fdecbae5
Author:     Denys Vlasenko <[email protected]>
AuthorDate: Sun, 20 Sep 2015 16:03:10 +0200
Committer:  Ingo Molnar <[email protected]>
CommitDate: Sun, 20 Sep 2015 16:19:01 +0200

x86/fpu/math-emu, selftests: Add test for FISTTP instructions

  $ ./test_FISTTP_32
  [RUN]	Testing fisttp instructions
  [OK]	fisttp
Cc Andy Lutomirski <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc Brian Gerst <[email protected]>
Cc H. Peter Anvin <[email protected]>
Cc Kees Cook <[email protected]>
Cc Linus Torvalds <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Shuah Khan <[email protected]>
Cc Thomas Gleixner <[email protected]>
---
 tools/testing/selftests/x86/Makefile      |   2 +-
 tools/testing/selftests/x86/test_FISTTP.c | 137 ++++++++++++++++++++++++++++++
 2 files changed, 138 insertions(+), 1 deletion(-)
tools/testing/selftests/x86/Makefile +1 -1
index c4c9b90..7145b3d 100644
@@ -6,7 +6,7 @@ include ../lib.mk
 
 TARGETS_C_BOTHBITS := single_step_syscall sysret_ss_attrs ldt_gdt syscall_nt
 TARGETS_C_32BIT_ONLY := entry_from_vm86 syscall_arg_fault sigreturn \
-			test_FCMOV test_FCOMI
+			test_FCMOV test_FCOMI test_FISTTP
 
 TARGETS_C_32BIT_ALL := $(TARGETS_C_BOTHBITS) $(TARGETS_C_32BIT_ONLY)
 BINARIES_32 := $(TARGETS_C_32BIT_ALL:%=%_32)
tools/testing/selftests/x86/test_FISTTP.c new file +137 -0

137 lines not on this page · raw message