You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
902 B
23 lines
902 B
; RUN: sed -e "s/ORDER/acquire/" %s | llc -march=hexagon | FileCheck %s
|
|
; RUN: sed -e "s/ORDER/release/" %s | llc -march=hexagon | FileCheck %s
|
|
; RUN: sed -e "s/ORDER/acq_rel/" %s | llc -march=hexagon | FileCheck %s
|
|
; RUN: sed -e "s/ORDER/seq_cst/" %s | llc -march=hexagon | FileCheck %s
|
|
; RUN: sed -e 's/ORDER/syncscope("singlethread") acquire/' %s | llc -march=hexagon | FileCheck %s
|
|
; RUN: sed -e 's/ORDER/syncscope("singlethread") release/' %s | llc -march=hexagon | FileCheck %s
|
|
; RUN: sed -e 's/ORDER/syncscope("singlethread") acq_rel/' %s | llc -march=hexagon | FileCheck %s
|
|
; RUN: sed -e 's/ORDER/syncscope("singlethread") seq_cst/' %s | llc -march=hexagon | FileCheck %s
|
|
|
|
define void @fence_func() #0 {
|
|
entry:
|
|
fence ORDER
|
|
ret void
|
|
}
|
|
; CHECK-LABEL: fence_func:
|
|
; CHECK: %bb.0
|
|
; CHECK-NEXT: {
|
|
; CHECK-NEXT: barrier
|
|
; CHECK-NEXT: }
|
|
; CHECK-NEXT: {
|
|
; CHECK-NEXT: jumpr r31
|
|
; CHECK-NEXT: }
|