aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-08-17 20:55:34 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-08-17 20:55:34 +0000
commita7fb3f68047556a7355e1f1080fb3d1ca9eb7078 (patch)
treea7db4137658b26a0c2b92c3000332f43b3fb6d48 /test
parent72e9b6aeb48d9496bac9db8b02c88a618b464588 (diff)
downloadexternal_llvm-a7fb3f68047556a7355e1f1080fb3d1ca9eb7078.zip
external_llvm-a7fb3f68047556a7355e1f1080fb3d1ca9eb7078.tar.gz
external_llvm-a7fb3f68047556a7355e1f1080fb3d1ca9eb7078.tar.bz2
Avoid folding ADD instructions with FI operands.
PEI can't handle the pseudo-instructions. This can be removed when the pseudo-instructions are replaced by normal predicated instructions. Fixes PR13628. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162130 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/ARM/select_xform.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/select_xform.ll b/test/CodeGen/ARM/select_xform.ll
index 26f7cb6..7f653d5 100644
--- a/test/CodeGen/ARM/select_xform.ll
+++ b/test/CodeGen/ARM/select_xform.ll
@@ -179,3 +179,14 @@ define i32 @t12(i32 %a, i32 %b) nounwind {
%tmp1 = select i1 %cond, i32 %a, i32 %x
ret i32 %tmp1
}
+
+; Handle frame index operands.
+define void @pr13628() nounwind uwtable align 2 {
+ %x3 = alloca i8, i32 256, align 8
+ %x4 = load i8* undef, align 1
+ %x5 = icmp ne i8 %x4, 0
+ %x6 = select i1 %x5, i8* %x3, i8* null
+ call void @bar(i8* %x6) nounwind
+ ret void
+}
+declare void @bar(i8*)