mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
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)
|