diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-08-17 20:55:34 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-08-17 20:55:34 +0000 |
commit | a7fb3f68047556a7355e1f1080fb3d1ca9eb7078 (patch) | |
tree | a7db4137658b26a0c2b92c3000332f43b3fb6d48 /test | |
parent | 72e9b6aeb48d9496bac9db8b02c88a618b464588 (diff) | |
download | external_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.ll | 11 |
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*) |