Rafael Espindola | c569608 | 2013-12-16 21:24:00 +0000 | [diff] [blame^] | 1 | ; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 |
2 | |||||
3 | define void @test1(i1 %x, i8 %x2, i8* %x3, i64 %x4) { | ||||
4 | entry: | ||||
5 | %tmp3 = and i64 %x4, 16 | ||||
6 | %bf.shl = trunc i64 %tmp3 to i8 | ||||
7 | %bf.clear = and i8 %x2, -17 | ||||
8 | %bf.set = or i8 %bf.shl, %bf.clear | ||||
9 | br i1 %x, label %if.then, label %if.end | ||||
10 | |||||
11 | if.then: | ||||
12 | ret void | ||||
13 | |||||
14 | if.end: | ||||
15 | store i8 %bf.set, i8* %x3, align 4 | ||||
16 | ret void | ||||
17 | } |