llvm-project/llvm/test/CodeGen/Mips/constraint-empty.ll
Fangrui Song ae26f50aea [test] Change llc -march=mips* to -mtriple=mips*
Similar to 806761a7629df268c8aed49657aeccffa6bca449
2024-12-10 22:14:06 -08:00

15 lines
382 B
LLVM

; Check that `getRegForInlineAsmConstraint` does not crash on empty Constraint.
; RUN: llc -mtriple=mips64 < %s | FileCheck %s
define void @foo() {
entry:
%s = alloca i32, align 4
%x = alloca i32, align 4
call void asm "", "=*imr,=*m,0,*m,~{$1}"(ptr elementtype(i32) %x, ptr elementtype(i32) %s, ptr %x, ptr elementtype(i32) %s)
; CHECK: #APP
; CHECK: #NO_APP
ret void
}