Home | History | Annotate | Download | only in ARM
      1 ; RUN: llc < %s -march=arm | grep .weak
      2 
      3 define i32 @f(i32 %a) {
      4 entry:
      5 	%tmp2 = icmp eq i32 %a, 0		; <i1> [#uses=1]
      6 	%t.0 = select i1 %tmp2, i32 (...)* null, i32 (...)* @test_weak		; <i32 (...)*> [#uses=2]
      7 	%tmp5 = icmp eq i32 (...)* %t.0, null		; <i1> [#uses=1]
      8 	br i1 %tmp5, label %UnifiedReturnBlock, label %cond_true8
      9 
     10 cond_true8:		; preds = %entry
     11 	%tmp10 = tail call i32 (...)* %t.0( )		; <i32> [#uses=1]
     12 	ret i32 %tmp10
     13 
     14 UnifiedReturnBlock:		; preds = %entry
     15 	ret i32 250
     16 }
     17 
     18 declare extern_weak i32 @test_weak(...)
     19