diff options
Diffstat (limited to 'test/CodeGen/builtin-wbinvd.c')
-rw-r--r-- | test/CodeGen/builtin-wbinvd.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/builtin-wbinvd.c b/test/CodeGen/builtin-wbinvd.c new file mode 100644 index 000000000000..fe5ad58ca2f3 --- /dev/null +++ b/test/CodeGen/builtin-wbinvd.c @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-unknown-unknown -emit-llvm -o - -Wall -Werror | FileCheck %s +// RUN: %clang_cc1 %s -ffreestanding -triple=i386-unknown-unknown -emit-llvm -o - -Wall -Werror | FileCheck %s + +#include <x86intrin.h> + +void test_wbinvd(void) { + //CHECK-LABEL: @test_wbinvd + //CHECK: call void @llvm.x86.wbinvd() + _wbinvd(); +} |