18 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc --mtriple=loongarch32 -mattr=+d < %s | FileCheck %s --check-prefix=LA323; RUN: llc --mtriple=loongarch64 -mattr=+d < %s | FileCheck %s --check-prefix=LA644 5define void @fence_singlethread() {6; LA32-LABEL: fence_singlethread:7; LA32: # %bb.0:8; LA32-NEXT: #MEMBARRIER9; LA32-NEXT: ret10;11; LA64-LABEL: fence_singlethread:12; LA64: # %bb.0:13; LA64-NEXT: #MEMBARRIER14; LA64-NEXT: ret15 fence syncscope("singlethread") seq_cst16 ret void17}18