wierton
wierton
In file matrix/matrix-android/matrix-sqlite-lint/src/lemon/os_common.h line 70, the implementation of hwtime seems to invoke assembly instruction `rdtsc` to get the cpu timestamp. From the specification of x86, `rdtsc` will output timestamp to...
From the x86_64 specification Vol. 2A 3-191, instruction cpuid will override register ecx when eax=01h, but in the source code of `source/blender/blenlib/intern/system.c`, ecx wasn't declared in clobber list. Declaring it...
The testcase (compiled with: `clang -fopenmp-simd small.c`): ``` int *a, b; void c(void) { #pragma omp task depend(iterator(int *d = 23 : a), in : b) } ``` Compiler Explorer:...
The testcase (compiled with: `clang small.c`): ``` __attribute__((target_clones("arch=core-avx2", "arch=slm", "default"))) void foo(void) {} ``` Compiler Explorer: https://gcc.godbolt.org/z/xn6KrTcor Compiler version: ``` clang version 17.0.0 (https://github.com/llvm/llvm-project.git 12e9c7aaa66b7624b5d7666ce2794d912bf9e4b7) Target: x86_64-unknown-linux-gnu Thread model: posix...
The testcase (compiled with `clang small.c`): ``` void a(float b) { asm ("" : "=v" (b) : : "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7", "xmm8", "xmm9", "xmm10", "xmm11",...
The testcase (compiled with `clang -fopenmp-simd small.c`): ``` void f(float *a, float *b) { #pragma omp unroll for (int i = 0; i < 128; i++) { a[i] = b[i];...
The testcase (compiled with `clang small.c`): ``` struct T { short a; char b[~(__SIZE_TYPE__)0 / __CHAR_BIT__ - 1]; }; void c() { struct T d = {5}; } ``` Compiler...
The testcase (with option `-O0`): ```cpp typedef long double T __attribute__((vector_size(32))); T sum(T first, T second) { return first > second; } ``` Compiler Explorer: https://gcc.godbolt.org/z/Ec7jKj76b ```console $ clang --version...
The testcase: ```cpp _Atomic(unsigned int) a; _Atomic(int *) b = 0; void c(int x) { a
The testcase: ```cpp struct a; void b(void) {} __attribute__((interrupt)) void c(struct a *d) { b(); } ``` When compile it using `clangtk` with option `-O0`, `clangtk` reports fatal errors in...