summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/2007-04-30-InlineAsmEarlyClobber.ll
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-05-17 04:50:57 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-05-17 04:50:57 +0000
commit0c9e4f5f3ff139733d74462a0ad5b94014e764a8 (patch)
treed2a849d95539d272e0419bedb30c622b8f7d4559 /test/CodeGen/PowerPC/2007-04-30-InlineAsmEarlyClobber.ll
parent646dd7c899ea213301e193a25536a4bceebf7937 (diff)
downloadllvm-0c9e4f5f3ff139733d74462a0ad5b94014e764a8.tar.gz
llvm-0c9e4f5f3ff139733d74462a0ad5b94014e764a8.tar.bz2
llvm-0c9e4f5f3ff139733d74462a0ad5b94014e764a8.tar.xz
Only use clairvoyance when defining a register, and then only if it has one use.
This makes allocation independent on the ordering of use-def chains. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103935 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/2007-04-30-InlineAsmEarlyClobber.ll')
-rw-r--r--test/CodeGen/PowerPC/2007-04-30-InlineAsmEarlyClobber.ll14
1 files changed, 5 insertions, 9 deletions
diff --git a/test/CodeGen/PowerPC/2007-04-30-InlineAsmEarlyClobber.ll b/test/CodeGen/PowerPC/2007-04-30-InlineAsmEarlyClobber.ll
index be74312777..9c28da8dc4 100644
--- a/test/CodeGen/PowerPC/2007-04-30-InlineAsmEarlyClobber.ll
+++ b/test/CodeGen/PowerPC/2007-04-30-InlineAsmEarlyClobber.ll
@@ -1,15 +1,11 @@
; RUN: llc < %s | FileCheck %s
-; RUN: llc < %s -regalloc=local | FileCheck -check-prefix=LOCAL %s
-; RUN: llc < %s -regalloc=fast | FileCheck -check-prefix=FAST %s
+; RUN: llc < %s -regalloc=local | FileCheck %s
+; RUN: llc < %s -regalloc=fast | FileCheck %s
; The first argument of subfc must not be the same as any other register.
-; CHECK: subfc r3,r5,r4
-; CHECK: subfze r4,r6
-; LOCAL: subfc r6,r5,r4
-; LOCAL: subfze r3,r3
-; FAST: subfc r3,r5,r4
-; FAST: subfze r4,r6
-
+; CHECK: subfc [[REG:r.]],
+; CHECK-NOT: [[REG]]
+; CHECK: InlineAsm End
; PR1357
target datalayout = "E-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64"