eefriedman / rust-immintrin

Intel x86 intrinsics (_mm_*) for Rust.
Apache License 2.0
4 stars 2 forks source link

use intel intrinsics xml data #2

Open seanjensengrey opened 8 years ago

seanjensengrey commented 8 years ago

see, https://github.com/rust-lang/rfcs/issues/1639#issuecomment-234807720

eefriedman commented 8 years ago

Hmm... I'll probably use that to generate function signatures for the rest of the intrinsics. (I did the signatures so far by copy-pasting from the Intel webpage, and using regular expressions to fix up the result.) I don't think I can use if for anything else, though.

seanjensengrey commented 8 years ago

It looks like the clang tests could be parsed to map between llvm intrinsics and intel intrinsics

__m128i test_mm_lddqu_si128(__m128i const* P) {
  // CHECK-LABEL: test_mm_lddqu_si128
  // CHECK: call <16 x i8> @llvm.x86.sse3.ldu.dq(i8* %{{.*}})
  return _mm_lddqu_si128(P);
}