Home | History | Annotate | Download | only in AArch64
      1 ; RUN: llc -fast-isel -pass-remarks-missed=isel -pass-remarks-missed=isel \
      2 ; RUN:     -mtriple arm64-- < %s 2> %t | FileCheck %s
      3 ; RUN: cat %t | FileCheck %s --check-prefix MISSED
      4 
      5 %struct = type { [4 x i32] }
      6 
      7 declare %struct @external()
      8 
      9 ; Check that, when fastisel falls back to SDAG, we don't emit instructions
     10 ; 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, 0
     15 
     16 ; CHECK-LABEL: test:
     17 ; CHECK: b external
     18 ; CHECK-NEXT: .Lfunc_end0:
     19 define i32 @test() nounwind {
     20   %tmp0 = tail call %struct @external()
     21   %tmp1 = extractvalue %struct %tmp0, 0
     22   %tmp2 = extractvalue [4 x i32] %tmp1, 0
     23   ret i32 %tmp2
     24 }
     25