25 lines · plain
1; RUN: llc -fast-isel -pass-remarks-missed=isel -pass-remarks-missed=isel \2; RUN: -mtriple arm64-- < %s 2> %t | FileCheck %s3; RUN: cat %t | FileCheck %s --check-prefix MISSED4 5%struct = type { [4 x i32] }6 7declare %struct @external()8 9; Check that, when fastisel falls back to SDAG, we don't emit instructions10; that follow a tail-call and would have been dropped by pure SDAGISel.11 12; Here, the %struct extractvalue should fail FastISel.13 14; MISSED: FastISel missed: %tmp1 = extractvalue %struct %tmp0, 015 16; CHECK-LABEL: test:17; CHECK: b external18; CHECK-NEXT: .Lfunc_end0:19define i32 @test() nounwind {20 %tmp0 = tail call %struct @external()21 %tmp1 = extractvalue %struct %tmp0, 022 %tmp2 = extractvalue [4 x i32] %tmp1, 023 ret i32 %tmp224}25