xref: /llvm-project/llvm/test/CodeGen/LoongArch/inline-asm-reg-names-f-error.ll (revision 394f30919a029331ebdfe02c180bd1586c0d9ace)
1; RUN: not llc --mtriple=loongarch32 --mattr=+f,+d 2>&1 < %s | FileCheck %s
2; RUN: not llc --mtriple=loongarch64 --mattr=+f,+d 2>&1 < %s | FileCheck %s
3
4define double @non_exit_f32(double %a) nounwind {
5; CHECK: error: couldn't allocate input reg for constraint '{$f32}'
6  %1 = tail call double asm "fabs.d $0, $1", "=f,{$f32}"(double %a)
7  ret double %1
8}
9
10define double @non_exit_foo(double %a) nounwind {
11; CHECK: error: couldn't allocate input reg for constraint '{$foo}'
12  %1 = tail call double asm "fabs.d $0, $1", "=f,{$foo}"(double %a)
13  ret double %1
14}
15