diff options
author | Eric Christopher <echristo@apple.com> | 2011-04-12 23:23:14 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-04-12 23:23:14 +0000 |
commit | d829f43c068e73c2f7d7637a65a69174986f8154 (patch) | |
tree | 57fb820ee6f2574b93750d6f34d7ab875ef7ce2a /llvm/test/CodeGen/ARM/2011-04-12-FastRegAlloc.ll | |
parent | 0e821f46736a9a8a273a3febbbfb0a84be8eedaa (diff) | |
download | bcm5719-llvm-d829f43c068e73c2f7d7637a65a69174986f8154.tar.gz bcm5719-llvm-d829f43c068e73c2f7d7637a65a69174986f8154.zip |
Fix a bug where we were counting the alias sets as completely used
registers for fast allocation.
Fixes rdar://9207598
llvm-svn: 129408
Diffstat (limited to 'llvm/test/CodeGen/ARM/2011-04-12-FastRegAlloc.ll')
-rw-r--r-- | llvm/test/CodeGen/ARM/2011-04-12-FastRegAlloc.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/2011-04-12-FastRegAlloc.ll b/llvm/test/CodeGen/ARM/2011-04-12-FastRegAlloc.ll new file mode 100644 index 00000000000..eb23de0b971 --- /dev/null +++ b/llvm/test/CodeGen/ARM/2011-04-12-FastRegAlloc.ll @@ -0,0 +1,15 @@ +; RUN: llc < %s -O0 -verify-machineinstrs -regalloc=fast +; Previously we'd crash as out of registers on this input by clobbering all of +; the aliases. +target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:32:64-v128:32:128-a0:0:32-n32" +target triple = "thumbv7-apple-darwin10.0.0" + +define void @_Z8TestCasev() nounwind ssp { +entry: + %a = alloca float, align 4 + %tmp = load float* %a, align 4 + call void asm sideeffect "", "w,~{s0},~{s16}"(float %tmp) nounwind, !srcloc !0 + ret void +} + +!0 = metadata !{i32 109} |