xref: /llvm-project/llvm/test/CodeGen/LoongArch/expand-call.ll (revision 0e6f64cd5e5a06bd78542d5541a762154546ced3)
1; RUN: llc --mtriple=loongarch64 -mattr=+d --stop-before loongarch-prera-expand-pseudo \
2; RUN:     --verify-machineinstrs < %s | FileCheck %s --check-prefix=NOEXPAND
3; RUN: llc --mtriple=loongarch64 --stop-after loongarch-prera-expand-pseudo \
4; RUN:     --verify-machineinstrs < %s | FileCheck %s --check-prefix=EXPAND
5
6declare void @callee()
7
8define void @caller() nounwind {
9; NOEXPAND-LABEL: name: caller
10; NOEXPAND: PseudoCALL target-flags{{.*}}callee
11;
12; EXPAND-LABEL: name: caller
13; EXPAND: BL target-flags{{.*}}callee
14  call void @callee()
15  ret void
16}
17