43 lines · plain
1; RUN: llc < %s -mtriple=thumbv7-eabi -mcpu=cortex-a8 -float-abi=hard | FileCheck %s2; RUN: llc < %s -mtriple=thumbv7-eabi -mcpu=cortex-a8 -float-abi=hard -regalloc=basic | FileCheck %s3; PR52044 5%"struct.__gnu_cxx::__normal_iterator<char*,std::basic_string<char, std::char_traits<char>, std::allocator<char> > >" = type { ptr }6%"struct.__gnu_cxx::new_allocator<char>" = type <{ i8 }>7%"struct.std::basic_string<char,std::char_traits<char>,std::allocator<char> >" = type { %"struct.__gnu_cxx::__normal_iterator<char*,std::basic_string<char, std::char_traits<char>, std::allocator<char> > >" }8%"struct.std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Rep" = type { %"struct.std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Rep_base" }9%"struct.std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Rep_base" = type { i32, i32, i32 }10 11 12define weak arm_aapcs_vfpcc i32 @_ZNKSs7compareERKSs(ptr %this, ptr %__str) {13; CHECK-LABEL: _ZNKSs7compareERKSs:14; CHECK: it eq15; CHECK-NEXT: subeq{{(.w)?}} r0, r{{[0-9]+}}, r{{[0-9]+}}16; CHECK-NEXT: pop.w17entry:18 %0 = tail call arm_aapcs_vfpcc i32 @_ZNKSs4sizeEv(ptr %this) ; <i32> [#uses=3]19 %1 = tail call arm_aapcs_vfpcc i32 @_ZNKSs4sizeEv(ptr %__str) ; <i32> [#uses=3]20 %2 = icmp ult i32 %1, %0 ; <i1> [#uses=1]21 %3 = select i1 %2, i32 %1, i32 %0 ; <i32> [#uses=1]22 %4 = tail call arm_aapcs_vfpcc ptr @_ZNKSs7_M_dataEv(ptr %this) ; <ptr> [#uses=1]23 %5 = tail call arm_aapcs_vfpcc ptr @_ZNKSs4dataEv(ptr %__str) ; <ptr> [#uses=1]24 %6 = tail call arm_aapcs_vfpcc i32 @memcmp(ptr %4, ptr %5, i32 %3) nounwind readonly ; <i32> [#uses=2]25 %7 = icmp eq i32 %6, 0 ; <i1> [#uses=1]26 br i1 %7, label %bb, label %bb127 28bb: ; preds = %entry29 %8 = sub i32 %0, %1 ; <i32> [#uses=1]30 ret i32 %831 32bb1: ; preds = %entry33 ret i32 %634}35 36declare arm_aapcs_vfpcc i32 @memcmp(ptr nocapture, ptr nocapture, i32) nounwind readonly37 38declare arm_aapcs_vfpcc i32 @_ZNKSs4sizeEv(ptr %this)39 40declare arm_aapcs_vfpcc ptr @_ZNKSs7_M_dataEv(ptr %this)41 42declare arm_aapcs_vfpcc ptr @_ZNKSs4dataEv(ptr %this)43