Add intrinsics.x86_cpuid and intrinsics.x86_xgetbv

This commit is contained in:
gingerBill
2022-05-28 15:41:11 +01:00
parent 618d3bf62f
commit d7eaf0f87b
6 changed files with 124 additions and 21 deletions
+4
View File
@@ -278,6 +278,10 @@ wasm_memory_size :: proc(index: uintptr) -> int ---
wasm_memory_atomic_wait32 :: proc(ptr: ^u32, expected: u32, timeout_ns: i64) -> u32 ---
wasm_memory_atomic_notify32 :: proc(ptr: ^u32, waiters: u32) -> (waiters_woken_up: u32) ---
// x86 Targets (i386, amd64)
cpuid :: proc(ax, cx: u32) -> (eax, ebc, ecx, edx: u32) ---
xgetbv :: proc(cx: u32) -> (eax, edx: u32) ---
// Darwin targets only
objc_object :: struct{}
+2 -1
View File
@@ -121,4 +121,5 @@ foreign _ {
@(link_name = "llvm.x86.ssse3.psign.w.128")
psignw128 :: proc(a, b: i16x8) -> i16x8 ---
@(link_name = "llvm.x86.ssse3.psign.d.128")
psignd128 :: proc(a, b: i32x4) -> i32x4 ---}
psignd128 :: proc(a, b: i32x4) -> i32x4 ---
}