[llvm] r197426 - Add a reduced testcase from the recent bootstrap crash.
Rafael Espindola
rafael.espindola at gmail.com
Mon Dec 16 13:24:01 PST 2013
Author: rafael
Date: Mon Dec 16 15:24:00 2013
New Revision: 197426
URL: http://llvm.org/viewvc/llvm-project?rev=197426&view=rev
Log:
Add a reduced testcase from the recent bootstrap crash.
Added:
llvm/trunk/test/CodeGen/PowerPC/crash.ll
Added: llvm/trunk/test/CodeGen/PowerPC/crash.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/crash.ll?rev=197426&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/crash.ll (added)
+++ llvm/trunk/test/CodeGen/PowerPC/crash.ll Mon Dec 16 15:24:00 2013
@@ -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
+}
More information about the llvm-commits
mailing list