blob: 983ba455e7b7a4035aa04e69d72ac82442889a0a [file] [log] [blame]
Jakob Stoklund Olesenca6fd002011-03-31 22:14:03 +00001; RUN: llc < %s -mtriple=armv6-linux-gnu -regalloc=basic | FileCheck %s
2
3; The greedy register allocator uses a single CSR here, invalidating the test.
Evan Cheng9d5fb982009-06-03 06:14:58 +00004
5@b = external global i64*
6
7define i64 @t(i64 %a) nounwind readonly {
8entry:
Jim Grosbachf6713912011-08-11 18:07:11 +00009; CHECK: push {lr}
Jim Grosbachf8fce712011-08-11 17:35:48 +000010; CHECK: pop {lr}
Evan Cheng9d5fb982009-06-03 06:14:58 +000011 %0 = load i64** @b, align 4
12 %1 = load i64* %0, align 4
13 %2 = mul i64 %1, %a
14 ret i64 %2
15}