[NFC][MLIR][Linalg] Refactor linalg.matmul tablegen ODS and related C++ code. (#116377)
[llvm-project.git] / bolt / test / runtime / X86 / instrumentation-xmm.c
blob1ddc104bc7226d2222fef0b9c50e31575deef776
1 #include <stdio.h>
3 void foo(float a) {
4 printf("a = %f\n", a);
7 typedef void (*fptr_t)(float);
8 fptr_t func = foo;
10 int main() {
11 func(42);
12 return 0;
16 ## Check that BOLT instrumentation runtime preserves xmm registers.
18 REQUIRES: system-linux,bolt-runtime
20 RUN: %clang %cflags %s -o %t.exe -fno-inline -Wl,-q
21 RUN: llvm-bolt %t.exe --instrument -o %t.instrumented \
22 RUN: --instrumentation-file=%t.fdata
23 RUN: %t.instrumented | FileCheck %s
25 CHECK: a = 42.000000