xref: /llvm-project/clang/test/CodeGen/X86/x86-tsxldtrk-builtins.c (revision 1ea584377e7897f7df5302ed9cd378d17be14fbf)
1 // RUN: %clang_cc1 %s -ffreestanding -triple i386-unknown-unknown -target-feature +tsxldtrk -emit-llvm -o - | FileCheck %s
2 // RUN: %clang_cc1 %s -ffreestanding -triple x86_64-unknown-unknown -target-feature +tsxldtrk -emit-llvm -o - | FileCheck %s
3 
4 #include <immintrin.h>
5 
test_xsusldtrk(void)6 void test_xsusldtrk(void) {
7 // CHECK-LABEL: test_xsusldtrk
8 // CHECK: call void @llvm.x86.xsusldtrk()
9     _xsusldtrk();
10 }
11 
test_xresldtrk(void)12 void test_xresldtrk(void) {
13 // CHECK-LABEL: test_xresldtrk
14 // CHECK: call void @llvm.x86.xresldtrk()
15     _xresldtrk();
16 }
17