23 lines · plain
1; RUN: not llc -mtriple=arm64ec-windows-msvc -filetype=null %s 2>&1 | FileCheck %s2; RUN: not llc -mtriple=arm64ec-windows-msvc -filetype=null -global-isel=1 -global-isel-abort=0 %s 2>&1 | FileCheck %s3 4define void @baz() #0 {5 call void @foo()6 ret void7}8 9define void @foo() #1 {10 ret void11}12 13attributes #0 = { noinline optnone }14attributes #1 = { "dontcall-error"="oh no foo" }15 16; Regression test for `dontcall-error` for Arm64EC. Since this attribute is17; checked both by FastISel and SelectionDAGBuilder, and FastISel was bailing for18; Arm64EC AFTER doing the check, we ended up with duplicate copies of this19; error.20 21; CHECK: error: call to #foo marked "dontcall-error": oh no foo22; CHECK-NOT: error:23