xref: /llvm-project/llvm/test/CodeGen/Mips/constraint-empty.ll (revision ae26f50aea4ef1a6c7058019f0db11a91bbcdade)
1; Check that `getRegForInlineAsmConstraint` does not crash on empty Constraint.
2; RUN: llc -mtriple=mips64 < %s | FileCheck %s
3
4define void @foo() {
5entry:
6  %s = alloca i32, align 4
7  %x = alloca i32, align 4
8  call void asm "", "=*imr,=*m,0,*m,~{$1}"(ptr elementtype(i32) %x, ptr elementtype(i32) %s, ptr %x, ptr elementtype(i32) %s)
9
10; CHECK: #APP
11; CHECK: #NO_APP
12
13  ret void
14}
15