xref: /llvm-project/llvm/test/CodeGen/Mips/micromips-target-external-symbol-reloc.ll (revision 8663926a544602932d299dda435ed1ef70a05f48)
1; RUN: llc -mtriple=mips-mti-linux-gnu -mcpu=mips32r2 -mattr=+micromips \
2; RUN:     -stop-after=finalize-isel < %s | FileCheck --check-prefix=MM2 %s
3; RUN: llc -mtriple=mips-mti-linux-gnu -mcpu=mips32r6 -mattr=+micromips \
4; RUN:     -stop-after=finalize-isel < %s | FileCheck --check-prefix=MM6 %s
5
6; MM2: JAL_MM @bar
7; MM2: JAL_MM &memset
8; MM2-NOT: JALR16_MM
9
10; MM6: JAL_MMR6 @bar
11; MM6: JAL_MMR6 &memset
12; MM6-NOT: JALRC16_MMR6
13
14define dso_local void @foo(ptr nocapture %ar) local_unnamed_addr {
15entry:
16  call void @bar()
17  tail call void @llvm.memset.p0.i32(ptr align 4 %ar, i8 0, i32 100, i1 false)
18  ret void
19}
20
21declare void @llvm.memset.p0.i32(ptr nocapture writeonly, i8, i32, i1)
22declare void @bar()
23