brintos

brintos / llvm-project-archived public Read only

0
0
Text · 711 B · 7ec28cc Raw
23 lines · plain
1; RUN: llc -mtriple=mips-mti-linux-gnu -mcpu=mips32r2 -mattr=+micromips \2; RUN:     -stop-after=finalize-isel < %s | FileCheck --check-prefix=MM2 %s3; RUN: llc -mtriple=mips-mti-linux-gnu -mcpu=mips32r6 -mattr=+micromips \4; RUN:     -stop-after=finalize-isel < %s | FileCheck --check-prefix=MM6 %s5 6; MM2: JAL_MM @bar7; MM2: JAL_MM &memset8; MM2-NOT: JALR16_MM9 10; MM6: JAL_MMR6 @bar11; MM6: JAL_MMR6 &memset12; MM6-NOT: JALRC16_MMR613 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 void19}20 21declare void @llvm.memset.p0.i32(ptr nocapture writeonly, i8, i32, i1)22declare void @bar()23