summaryrefslogtreecommitdiff
path: root/test/CodeGen/builtin-clwb.c
blob: 11c37c17694cf9be8754b473b78c4ed888700c57 (plain)
1
2
3
4
5
6
7
8
9
// RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-apple-darwin -target-feature +clwb  -emit-llvm -o - -Wall -Werror | FileCheck %s

#include <immintrin.h>

void test_mm_clwb(const void *__m) {
  //CHECK-LABEL: @test_mm_clwb
  //CHECK: @llvm.x86.clwb
  _mm_clwb(__m);
}