xref: /llvm-project/llvm/test/CodeGen/Mips/constraint-c.ll (revision ae26f50aea4ef1a6c7058019f0db11a91bbcdade)
1; Check handling of the constraint `c`.
2; RUN: llc -mtriple=mips -target-abi o32 < %s | FileCheck %s
3
4define i32 @main() #0 {
5entry:
6  %jmp = alloca i32, align 4
7  store i32 0, ptr %jmp, align 4
8  %0 = load i32, ptr %jmp, align 4
9  call void asm sideeffect "jr $0", "c,~{$1}"(i32 %0) #1
10
11; CHECK: addiu   $25, $zero, 0
12; CHECK: jr      $25
13
14  ret i32 0
15}
16
17attributes #0 = { noinline nounwind }
18attributes #1 = { nounwind }
19