blob: f82ac4638f40a05b5fc01d72929b50dbd2599f25 [file] [log] [blame]
Craig Topper326442c2017-10-12 17:21:01 +00001// RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-apple-darwin -target-feature +clflushopt -emit-llvm -o - -Wall -Werror | FileCheck %s
Michael Zuckermanb9206652016-07-05 15:56:03 +00002
Craig Topper326442c2017-10-12 17:21:01 +00003#include <x86intrin.h>
4
Michael Zuckermanb9206652016-07-05 15:56:03 +00005void test_mm_clflushopt(char * __m) {
Craig Topper45742262017-02-09 06:10:14 +00006 //CHECK-LABEL: @test_mm_clflushopt
Michael Zuckermanb9206652016-07-05 15:56:03 +00007 //CHECK: @llvm.x86.clflushopt
8 _mm_clflushopt(__m);
9}