1 ; RUN: llc < %s -mattr=+rtm -mtriple=x86_64-unknown-unknown | FileCheck %s
3 declare i32 @llvm.x86.xbegin() nounwind
4 declare void @llvm.x86.xend() nounwind
5 declare void @llvm.x86.xabort(i8) noreturn nounwind
7 define i32 @test_xbegin() nounwind uwtable {
9 %0 = tail call i32 @llvm.x86.xbegin() nounwind
12 ; CHECK: xbegin [[LABEL:.*BB.*]]
16 define void @test_xend() nounwind uwtable {
18 tail call void @llvm.x86.xend() nounwind
24 define void @test_xabort() nounwind uwtable {
26 tail call void @llvm.x86.xabort(i8 2)