diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-12-16 21:24:00 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-12-16 21:24:00 +0000 |
commit | 62fd16a2970c1265bb4de54a4973334903814686 (patch) | |
tree | 7f4316dfe6a025fc1e7e30623b14b254693899dd /test/CodeGen/PowerPC/crash.ll | |
parent | 9bf2e090a005b51101143c68c8af3bf285b3f46a (diff) |
Add a reduced testcase from the recent bootstrap crash.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197426 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/crash.ll')
-rw-r--r-- | test/CodeGen/PowerPC/crash.ll | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/crash.ll b/test/CodeGen/PowerPC/crash.ll new file mode 100644 index 00000000000..5cecca72fdb --- /dev/null +++ b/test/CodeGen/PowerPC/crash.ll @@ -0,0 +1,17 @@ +; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 + +define void @test1(i1 %x, i8 %x2, i8* %x3, i64 %x4) { +entry: + %tmp3 = and i64 %x4, 16 + %bf.shl = trunc i64 %tmp3 to i8 + %bf.clear = and i8 %x2, -17 + %bf.set = or i8 %bf.shl, %bf.clear + br i1 %x, label %if.then, label %if.end + +if.then: + ret void + +if.end: + store i8 %bf.set, i8* %x3, align 4 + ret void +} |