Commit Graph

45 Commits

Author SHA1 Message Date
Barinzaya
41bf1ab6dd Added BMI and BMI2 intrinsics.
The BMI ones mostly aren't particularly interesting--they're mostly
trivially representable in-language--but PDEP and PEXT from BMI2 could
be.
2025-05-06 01:44:10 -04:00
Yawning Angel
982ab11aa1 core/crypto/sha2: Use hardware SHA224/256 when available (AMD64) 2025-03-23 19:14:33 +09:00
Antonino Simone Di Stefano
357c8f6f34 Replace "." with "," in parameter list 2024-09-22 23:19:36 +02:00
Karl Zylinski
19f0127e55 Moved all packages in core, base, vendor, tests and examples to use new #+ file tag syntax. 2024-09-14 18:27:49 +02:00
gingerBill
b67ed78afd add_sat -> saturating_add 2024-08-05 13:21:27 +01:00
Yawning Angel
69026852ce core/crypto/aes: Add Intel AES-NI support
This supports AES-NI + PCLMUL, and provides optimized key schedule, ECB,
CTR, and GCM.  Other modes are trivial to add later if required.
2024-07-16 01:29:43 +09:00
Yawning Angel
f578994fa6 core/simd/x86: Make the AES-NI intrinsics consistent with Intel 2024-07-16 01:29:43 +09:00
Yawning Angel
390cd3c30d core/simd/x86: Fix some intrinsics
- _mm_slli_si128 produced totally incorrect output
- _mm_storeu_si128 refered to a LLVM intrinsic that is missing
2024-07-16 01:29:43 +09:00
Jeroen van Rijn
7b31acd2d7 Let simd/x86 pass new transmute/cast vet. 2024-07-09 16:50:55 +02:00
Yawning Angel
f49575f1fb core/simd/x86: Add the AES-NI intrinsics 2024-06-01 22:55:42 +09:00
gingerBill
1b593fc1ca Correct core:intrinsics to base:intrinsics 2024-05-13 13:27:44 +01:00
Laytan Laats
25f1d0906d compiler: improve target features support 2024-05-02 00:59:52 +02:00
Yawning Angel
8d7c37e384 core/simd/x86: Use the none calling convention for intrinsics
The LLVM intrinsics that live under `llvm.x86` are not actual functions,
so trying to invoke them as such using the platform's native C
calling convention causes incorrect types to be emitted in the IR.

Thanks to laytanl for assistance in testing.
2024-01-07 20:04:40 +09:00
Yawning Angel
9235e82451 core/simd/x86: Correct a target feature name 2024-01-07 20:04:40 +09:00
jakubtomsu
b06583133a Fix the other bit_* intrinsic calls 2023-10-22 20:59:19 +02:00
jakubtomsu
a2e6fc5909 change and_not to bit_and_not 2023-10-22 20:52:35 +02:00
Jeroen van Rijn
d5f94d73ad [sys/info] Initial version. 2022-09-01 00:43:47 +02:00
gingerBill
4e49d24df9 Add enable_target_feature to ABM 2022-05-30 16:08:06 +01:00
gingerBill
68222cb8ab Add SSE4.2 2022-05-30 16:06:31 +01:00
gingerBill
912d29af83 Add @(require_results) to all appropriate procedures 2022-05-30 15:59:48 +01:00
gingerBill
51707032d1 Add SSE4.1 2022-05-30 15:17:02 +01:00
gingerBill
f3aefbc443 @(require_target_feature=<string>) @(enable_target_feature=<string>)
require_target_feature - required by the target micro-architecture
enable_target_feature - will be enabled for the specified procedure only
2022-05-30 14:53:12 +01:00
gingerBill
f6dfa33697 Use single line attributes 2022-05-29 15:11:15 +01:00
gingerBill
bc3bf939e0 Add sha.odin 2022-05-29 14:56:25 +01:00
gingerBill
f5e5eac3b9 Add cmpxchg16b 2022-05-29 14:46:05 +01:00
gingerBill
0ccbea17aa Add pclmulqdq.odin 2022-05-29 13:50:54 +01:00
gingerBill
babfba5e8f Add rdtsc.odin 2022-05-29 13:48:20 +01:00
gingerBill
846f8377b2 Add fxsr.odin 2022-05-29 13:44:00 +01:00
gingerBill
77d4409549 Add adx.odin 2022-05-29 13:40:16 +01:00
gingerBill
7f3540b7f5 Add abm.odin 2022-05-29 13:36:55 +01:00
gingerBill
3ad2cde833 Add amd64 specific instructions 2022-05-29 13:34:59 +01:00
gingerBill
910799cc5f Add cpu_features for core:simd/x86 2022-05-28 15:54:41 +01:00
gingerBill
d7eaf0f87b Add intrinsics.x86_cpuid and intrinsics.x86_xgetbv 2022-05-28 15:41:11 +01:00
gingerBill
4db533ff71 Add ssse3 support 2022-05-27 23:07:33 +01:00
gingerBill
026540040d Add SSE3 support 2022-05-27 23:00:52 +01:00
gingerBill
8518d3b232 Rename to non_temporaral_* 2022-05-27 22:57:16 +01:00
gingerBill
1c1f5e2231 Complete SSE2 2022-05-27 22:56:11 +01:00
gingerBill
20c5033b38 Add pack and unpack 2022-05-27 17:07:48 +01:00
gingerBill
20fe6d102a Add load and stores and sets 2022-05-27 16:58:35 +01:00
gingerBill
4e30a64d9f Add more sse2 intrinsics 2022-05-27 16:49:52 +01:00
gingerBill
c48ef7d70b Add shifts 2022-05-27 16:39:54 +01:00
gingerBill
e079a7009d Begin work on sse2.odin 2022-05-27 16:09:31 +01:00
gingerBill
f383bf3136 Add _mm_stream_ps 2022-05-27 14:59:09 +01:00
gingerBill
2185dada56 Change package name 2022-05-27 14:26:02 +01:00
gingerBill
0b08080119 Add core:simd/x86 SSE
Proof of Concept to show intrinsics specific to a certain target platform
2022-05-27 14:23:31 +01:00