1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 3
2 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 | FileCheck %s
3 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-ibm-aix -mcpu=pwr8 | FileCheck %s
5 define i64 @rldimi1(i64 %a) {
6 ; CHECK-LABEL: rldimi1:
7 ; CHECK: # %bb.0: # %entry
8 ; CHECK-NEXT: rldimi 3, 3, 8, 0
17 define i64 @rldimi2(i64 %a) {
18 ; CHECK-LABEL: rldimi2:
19 ; CHECK: # %bb.0: # %entry
21 ; CHECK-NEXT: rlwimi 4, 3, 8, 16, 23
22 ; CHECK-NEXT: rlwimi 4, 3, 16, 8, 15
23 ; CHECK-NEXT: rldimi 4, 3, 24, 0
31 %x4 = and i64 %x2, 65535
36 define i64 @rldimi3(i64 %a) {
37 ; CHECK-LABEL: rldimi3:
38 ; CHECK: # %bb.0: # %entry
39 ; CHECK-NEXT: rotldi 4, 3, 32
40 ; CHECK-NEXT: rlwimi 4, 3, 0, 24, 31
41 ; CHECK-NEXT: rlwimi 4, 3, 8, 16, 23
42 ; CHECK-NEXT: rlwimi 4, 3, 16, 8, 15
43 ; CHECK-NEXT: rlwimi 4, 3, 24, 0, 7
44 ; CHECK-NEXT: rldimi 4, 3, 40, 16
45 ; CHECK-NEXT: rldimi 4, 3, 48, 8
46 ; CHECK-NEXT: rldimi 4, 3, 56, 0
54 %4 = and i64 %2, 65535
57 %7 = and i64 %5, 4294967295