diff options
author | Chris Lattner <sabre@nondot.org> | 2006-12-07 22:36:14 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-12-07 22:36:14 +0000 |
commit | d4fca27e5953e89ea000253998ffcd93ae74e5cc (patch) | |
tree | 52ae98ded3d84645ce7e7446b791f4442db57e5a /test/CodeGen/PowerPC | |
parent | badc4fae531cc0fdaa8e58f481c3b1d23ea7dd56 (diff) | |
download | external_llvm-d4fca27e5953e89ea000253998ffcd93ae74e5cc.zip external_llvm-d4fca27e5953e89ea000253998ffcd93ae74e5cc.tar.gz external_llvm-d4fca27e5953e89ea000253998ffcd93ae74e5cc.tar.bz2 |
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32335 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC')
-rw-r--r-- | test/CodeGen/PowerPC/2006-12-07-SelectCrash.ll | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/2006-12-07-SelectCrash.ll b/test/CodeGen/PowerPC/2006-12-07-SelectCrash.ll new file mode 100644 index 0000000..d59e091 --- /dev/null +++ b/test/CodeGen/PowerPC/2006-12-07-SelectCrash.ll @@ -0,0 +1,27 @@ +; RUN: llvm-as < %s | llc -march=ppc64 && +; RUN: llvm-as < %s | llc -march=ppc32 && +; RUN: llvm-as < %s | llc + +%qsz.b = external global bool ; <bool*> [#uses=1] + +implementation ; Functions: + +fastcc void %qst() { +entry: + br bool true, label %cond_next71, label %cond_true + +cond_true: ; preds = %entry + ret void + +cond_next71: ; preds = %entry + %tmp73.b = load bool* %qsz.b ; <bool> [#uses=1] + %ii.4.ph = select bool %tmp73.b, ulong 4, ulong 0 ; <ulong> [#uses=1] + br label %bb139 + +bb82: ; preds = %bb139 + ret void + +bb139: ; preds = %bb139, %cond_next71 + %exitcond89 = seteq ulong 0, %ii.4.ph ; <bool> [#uses=1] + br bool %exitcond89, label %bb82, label %bb139 +} |