; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc -verify-machineinstrs -mtriple=powerpc64le -global-isel \
; RUN: -ppc-asm-full-reg-names < %s | FileCheck %s
declare void @llvm.ppc.isync()
declare void @llvm.ppc.sync()
declare void @llvm.ppc.lwsync()
define void @test_sync() {
; CHECK-LABEL: test_sync:
; CHECK: # %bb.0: # %entry
; CHECK-NEXT: isync
; CHECK-NEXT: sync
; CHECK-NEXT: lwsync
; CHECK-NEXT: blr
entry:
call void @llvm.ppc.isync()
call void @llvm.ppc.sync()
call void @llvm.ppc.lwsync()
ret void
}