mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-31 07:52:55 +01:00
071ca2ff6d
This removes the custom ISD Node: MEMBARRIER and replaces it with an intrinsic. llvm-svn: 190055
17 lines
368 B
LLVM
17 lines
368 B
LLVM
; RUN: llc < %s -mtriple=armv8 -mattr=+db | FileCheck %s
|
|
|
|
define void @test() {
|
|
; CHECK: dmb sy
|
|
call void @llvm.arm.dmb(i32 15)
|
|
; CHECK: dmb osh
|
|
call void @llvm.arm.dmb(i32 3)
|
|
; CHECK: dsb sy
|
|
call void @llvm.arm.dsb(i32 15)
|
|
; CHECK: dsb ishld
|
|
call void @llvm.arm.dsb(i32 9)
|
|
ret void
|
|
}
|
|
|
|
declare void @llvm.arm.dmb(i32)
|
|
declare void @llvm.arm.dsb(i32)
|