Skip to content

Instantly share code, notes, and snippets.

@croepha
Last active January 6, 2019 07:29
Show Gist options
  • Save croepha/dde73eb313b15538251ef032e8548047 to your computer and use it in GitHub Desktop.
Save croepha/dde73eb313b15538251ef032e8548047 to your computer and use it in GitHub Desktop.
#include <wmmintrin.h>
int main() {
__m128i v = {};
static const int r0 = 0x00;
static const int r[] = {0x00};
static const int r1 = r[0];
_mm_aeskeygenassist_si128(v, r0); // compiles
_mm_aeskeygenassist_si128(v, r1); // fails with error: argument to '__builtin_ia32_aeskeygenassist128' must be a constant integer
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment