2011-03-31 22:14:03 +00:00
|
|
|
; RUN: llc < %s -mtriple=armv6-linux-gnu -regalloc=linearscan | FileCheck %s
|
|
|
|
; RUN: llc < %s -mtriple=armv6-linux-gnu -regalloc=basic | FileCheck %s
|
|
|
|
|
|
|
|
; The greedy register allocator uses a single CSR here, invalidating the test.
|
2009-06-03 06:14:58 +00:00
|
|
|
|
|
|
|
@b = external global i64*
|
|
|
|
|
|
|
|
define i64 @t(i64 %a) nounwind readonly {
|
|
|
|
entry:
|
2010-12-09 18:31:13 +00:00
|
|
|
; CHECK: str lr, [sp, #-4]!
|
2011-08-11 17:35:48 +00:00
|
|
|
; CHECK: pop {lr}
|
2009-06-03 06:14:58 +00:00
|
|
|
%0 = load i64** @b, align 4
|
|
|
|
%1 = load i64* %0, align 4
|
|
|
|
%2 = mul i64 %1, %a
|
|
|
|
ret i64 %2
|
|
|
|
}
|