diff options
author | Stephen Hines <srhines@google.com> | 2014-04-23 16:57:46 -0700 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2014-04-24 15:53:16 -0700 |
commit | 36b56886974eae4f9c5ebc96befd3e7bfe5de338 (patch) | |
tree | e6cfb69fbbd937f450eeb83bfb83b9da3b01275a /test/CodeGen/PowerPC/crash.ll | |
parent | 69a8640022b04415ae9fac62f8ab090601d8f889 (diff) | |
download | external_llvm-36b56886974eae4f9c5ebc96befd3e7bfe5de338.zip external_llvm-36b56886974eae4f9c5ebc96befd3e7bfe5de338.tar.gz external_llvm-36b56886974eae4f9c5ebc96befd3e7bfe5de338.tar.bz2 |
Update to LLVM 3.5a.
Change-Id: Ifadecab779f128e62e430c2b4f6ddd84953ed617
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 0000000..5cecca7 --- /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 +} |