mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-22 07:32:48 +00:00
62fd16a297
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197426 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
375 B
LLVM
18 lines
375 B
LLVM
; 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
|
|
}
|