brintos

brintos / llvm-project-archived public Read only

0
0
Text · 736 B · ee55ed3 Raw
14 lines · plain
1; RUN: llc --mtriple=loongarch64 --verify-machineinstrs --stop-after=prologepilog < %s | FileCheck %s2 3;; Check that STATEPOINT instruction has an early clobber implicit def for R1.4 5define void @test() gc "statepoint-example" {6entry:7  %safepoint_token = tail call token (i64, i32, ptr, i32, i32, ...) @llvm.experimental.gc.statepoint.p0(i64 0, i32 0, ptr elementtype(void ()) @return_i1, i32 0, i32 0, i32 0, i32 0) ["gc-live" ()]8; CHECK: STATEPOINT 0, 0, 0, target-flags(loongarch-call-plt) @return_i1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, csr_ilp32d_lp64d, implicit-def $r3, implicit-def dead early-clobber $r19  ret void10}11 12declare void @return_i1()13declare token @llvm.experimental.gc.statepoint.p0(i64, i32, ptr, i32, i32, ...)14