1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \
3 ; RUN: -ppc-asm-full-reg-names -mcpu=pwr8 < %s | FileCheck %s
5 %struct.m.2.5.8.11 = type { %struct.l.0.3.6.9, [7 x i8], %struct.a.1.4.7.10 }
6 %struct.l.0.3.6.9 = type { i8 }
7 %struct.a.1.4.7.10 = type { [27 x i8], [0 x i32], [4 x i8] }
9 define void @_ZN1m1nEv(ptr %this) local_unnamed_addr nounwind align 2 {
10 ; CHECK-LABEL: _ZN1m1nEv:
11 ; CHECK: # %bb.0: # %entry
13 ; CHECK-NEXT: std r30, -16(r1) # 8-byte Folded Spill
14 ; CHECK-NEXT: stdu r1, -48(r1)
15 ; CHECK-NEXT: std r0, 64(r1)
16 ; CHECK-NEXT: mr r30, r3
17 ; CHECK-NEXT: ld r3, 8(r3)
18 ; CHECK-NEXT: lwz r4, 36(r30)
19 ; CHECK-NEXT: rldicl r3, r3, 60, 4
20 ; CHECK-NEXT: clrlwi r4, r4, 31
21 ; CHECK-NEXT: slwi r3, r3, 31
22 ; CHECK-NEXT: rlwimi r4, r3, 0, 0, 0
23 ; CHECK-NEXT: bl _ZN1llsE1d
25 ; CHECK-NEXT: ld r3, 16(r30)
26 ; CHECK-NEXT: ld r4, 8(r30)
27 ; CHECK-NEXT: rldicl r4, r4, 60, 4
28 ; CHECK-NEXT: sldi r3, r3, 60
29 ; CHECK-NEXT: or r3, r3, r4
30 ; CHECK-NEXT: sldi r3, r3, 31
31 ; CHECK-NEXT: rlwinm r4, r3, 0, 0, 0
32 ; CHECK-NEXT: bl _ZN1llsE1d
34 ; CHECK-NEXT: addi r1, r1, 48
35 ; CHECK-NEXT: ld r0, 16(r1)
36 ; CHECK-NEXT: ld r30, -16(r1) # 8-byte Folded Reload
40 %bc = getelementptr inbounds %struct.m.2.5.8.11, ptr %this, i64 0, i32 2
41 %bf.load = load i216, ptr %bc, align 8
42 %bf.lshr = lshr i216 %bf.load, 4
43 %shl.i23 = shl i216 %bf.lshr, 31
44 %shl.i = trunc i216 %shl.i23 to i32
45 %arrayidx = getelementptr inbounds %struct.m.2.5.8.11, ptr %this, i64 0, i32 2, i32 1, i64 0
46 %0 = load i32, ptr %arrayidx, align 4
47 %and.i = and i32 %0, 1
48 %or.i = or i32 %and.i, %shl.i
49 tail call void @_ZN1llsE1d(ptr undef, i32 %or.i) #1
50 %bf.load10 = load i216, ptr %bc, align 8
51 %bf.lshr11 = lshr i216 %bf.load10, 4
52 %shl.i1524 = shl i216 %bf.lshr11, 31
53 %shl.i15 = trunc i216 %shl.i1524 to i32
54 tail call void @_ZN1llsE1d(ptr undef, i32 %shl.i15) #1
57 declare void @_ZN1llsE1d(ptr, i32) local_unnamed_addr #0