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: -mcpu=pwr8 < %s | FileCheck %s
4 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64-ibm-aix-xcoff -mcpu=pwr8 \
5 ; RUN: < %s -vec-extabi | FileCheck %s
7 %class.PB2 = type { [1 x i32], ptr }
8 %class.PB1 = type { [1 x i32], i64, i64, i32 }
10 ; Function Attrs: norecurse nounwind readonly
11 define zeroext i1 @test1(ptr %s_a, ptr %s_b) local_unnamed_addr #0 {
13 ; CHECK: # %bb.0: # %entry
14 ; CHECK-NEXT: lwz 3, 0(3)
15 ; CHECK-NEXT: lwz 4, 0(4)
16 ; CHECK-NEXT: rlwinm 3, 3, 0, 28, 28
17 ; CHECK-NEXT: rlwinm 4, 4, 0, 28, 28
18 ; CHECK-NEXT: sub 3, 3, 4
19 ; CHECK-NEXT: rldicl 3, 3, 1, 63
22 %0 = load i32, ptr %s_a, align 8, !tbaa !1
23 %and.i = and i32 %0, 8
24 %1 = load i32, ptr %s_b, align 8, !tbaa !1
25 %and.i4 = and i32 %1, 8
26 %cmp.i5 = icmp ult i32 %and.i, %and.i4
30 ; Function Attrs: norecurse nounwind readonly
31 define zeroext i1 @test2(ptr %s_a, ptr %s_b) local_unnamed_addr #0 {
33 ; CHECK: # %bb.0: # %entry
34 ; CHECK-NEXT: lwz 3, 0(3)
35 ; CHECK-NEXT: lwz 4, 0(4)
36 ; CHECK-NEXT: rlwinm 3, 3, 0, 28, 28
37 ; CHECK-NEXT: rlwinm 4, 4, 0, 28, 28
38 ; CHECK-NEXT: sub 3, 4, 3
39 ; CHECK-NEXT: not 3, 3
40 ; CHECK-NEXT: rldicl 3, 3, 1, 63
43 %0 = load i32, ptr %s_a, align 8, !tbaa !1
44 %and.i = and i32 %0, 8
45 %1 = load i32, ptr %s_b, align 8, !tbaa !1
46 %and.i4 = and i32 %1, 8
47 %cmp.i5 = icmp ule i32 %and.i, %and.i4
51 ; Function Attrs: norecurse nounwind readonly
52 define zeroext i1 @test3(ptr %s_a, ptr %s_b) local_unnamed_addr #0 {
54 ; CHECK: # %bb.0: # %entry
55 ; CHECK-NEXT: lwz 3, 0(3)
56 ; CHECK-NEXT: lwz 4, 0(4)
57 ; CHECK-NEXT: rlwinm 3, 3, 0, 28, 28
58 ; CHECK-NEXT: rlwinm 4, 4, 0, 28, 28
59 ; CHECK-NEXT: sub 3, 4, 3
60 ; CHECK-NEXT: rldicl 3, 3, 1, 63
63 %0 = load i32, ptr %s_a, align 8, !tbaa !1
64 %and.i = and i32 %0, 8
65 %1 = load i32, ptr %s_b, align 8, !tbaa !1
66 %and.i4 = and i32 %1, 8
67 %cmp.i5 = icmp ugt i32 %and.i, %and.i4
71 ; Function Attrs: norecurse nounwind readonly
72 define zeroext i1 @test4(ptr %s_a, ptr %s_b) local_unnamed_addr #0 {
74 ; CHECK: # %bb.0: # %entry
75 ; CHECK-NEXT: lwz 3, 0(3)
76 ; CHECK-NEXT: lwz 4, 0(4)
77 ; CHECK-NEXT: rlwinm 3, 3, 0, 28, 28
78 ; CHECK-NEXT: rlwinm 4, 4, 0, 28, 28
79 ; CHECK-NEXT: sub 3, 3, 4
80 ; CHECK-NEXT: not 3, 3
81 ; CHECK-NEXT: rldicl 3, 3, 1, 63
84 %0 = load i32, ptr %s_a, align 8, !tbaa !1
85 %and.i = and i32 %0, 8
86 %1 = load i32, ptr %s_b, align 8, !tbaa !1
87 %and.i4 = and i32 %1, 8
88 %cmp.i5 = icmp uge i32 %and.i, %and.i4
93 !2 = !{!"int", !3, i64 0}
94 !3 = !{!"omnipotent char", !4, i64 0}
95 !4 = !{!"Simple C++ TBAA"}