mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-30 13:24:27 +01:00
x86 asm: move x87 FPU instructions from x86-assembly-cheat
This commit is contained in:
16
userland/arch/x86_64/fild.S
Normal file
16
userland/arch/x86_64/fild.S
Normal file
@@ -0,0 +1,16 @@
|
||||
/* https://github.com/cirosantilli/linux-kernel-module-cheat#x86-x87-fpu-instructions */
|
||||
|
||||
#include <lkmc.h>
|
||||
|
||||
.data
|
||||
double_10_0: .double 10.0
|
||||
.bss
|
||||
double_10_0_2: .skip 8
|
||||
LKMC_PROLOGUE
|
||||
movl $10, double_10_0_2
|
||||
fildl double_10_0_2
|
||||
fldl double_10_0
|
||||
fcomip %st(1)
|
||||
LKMC_ASSERT(je)
|
||||
finit
|
||||
LKMC_EPILOGUE
|
||||
Reference in New Issue
Block a user