[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / X86 / rtm-builtins.c
blob44952a07cd779adcbc220a422bf45d130aef3e4e
1 // RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +rtm -emit-llvm -o - | FileCheck %s
4 #include <immintrin.h>
6 unsigned int test_xbegin(void) {
7 // CHECK: i32 @llvm.x86.xbegin()
8 return _xbegin();
11 void
12 test_xend(void) {
13 // CHECK: void @llvm.x86.xend()
14 _xend();
17 void
18 test_xabort(void) {
19 // CHECK: void @llvm.x86.xabort(i8 2)
20 _xabort(2);
23 unsigned int test_xtest(void) {
24 // CHECK: i32 @llvm.x86.xtest()
25 return _xtest();