bolt/deps/llvm-18.1.8/llvm/test/CodeGen/PowerPC/GlobalISel/ppc-isel-sync.ll

22 lines
581 B
LLVM
Raw Normal View History

2025-02-14 19:21:04 +01:00
; 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
}