15 lines · plain
1; RUN: not llc --mtriple=loongarch32 --mattr=+f,+d 2>&1 < %s | FileCheck %s2; RUN: not llc --mtriple=loongarch64 --mattr=+f,+d 2>&1 < %s | FileCheck %s3 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 %18}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 %114}15