Home | History | Annotate | Download | only in ARM
      1 ; RUN: llc < %s -mtriple=armv6-apple-darwin -regalloc=linearscan | FileCheck %s -check-prefix=V6
      2 ; RUN: llc < %s -mtriple=armv5-apple-darwin -regalloc=linearscan | FileCheck %s -check-prefix=V5
      3 ; RUN: llc < %s -mtriple=armv6-eabi -regalloc=linearscan | FileCheck %s -check-prefix=EABI
      4 ; rdar://r6949835
      5 
      6 ; Magic ARM pair hints works best with linearscan.
      7 
      8 @b = external global i64*
      9 
     10 define i64 @t(i64 %a) nounwind readonly {
     11 entry:
     12 ;V6:   ldrd r2, r3, [r2]
     13 
     14 ;V5:   ldr r{{[0-9]+}}, [r2]
     15 ;V5:   ldr r{{[0-9]+}}, [r2, #4]
     16 
     17 ;EABI: ldr r{{[0-9]+}}, [r2]
     18 ;EABI: ldr r{{[0-9]+}}, [r2, #4]
     19 
     20 	%0 = load i64** @b, align 4
     21 	%1 = load i64* %0, align 4
     22 	%2 = mul i64 %1, %a
     23 	ret i64 %2
     24 }
     25