1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple powerpc64le-unknown-linux-gnu < %s | FileCheck %s
3 ; RUN: llc -mtriple powerpc64-ibm-aix-xcoff < %s | FileCheck %s
5 define i1 @and_cmp_variable_power_of_two(i32 %x, i32 %y) {
6 ; CHECK-LABEL: and_cmp_variable_power_of_two:
8 ; CHECK-NEXT: srw 3, 3, 4
11 %and = and i32 %x, %shl
12 %cmp = icmp eq i32 %and, %shl
16 define i1 @and_cmp_variable_power_of_two_64(i64 %x, i64 %y) {
17 ; CHECK-LABEL: and_cmp_variable_power_of_two_64:
19 ; CHECK-NEXT: srd 3, 3, 4
22 %and = and i64 %x, %shl
23 %cmp = icmp eq i64 %and, %shl
27 define i1 @and_ncmp_variable_power_of_two(i32 %x, i32 %y) {
28 ; CHECK-LABEL: and_ncmp_variable_power_of_two:
30 ; CHECK-NEXT: srw 3, 3, 4
31 ; CHECK-NEXT: xori 3, 3, 1
34 %and = and i32 %x, %shl
35 %cmp = icmp ne i32 %and, %shl
39 define i1 @and_ncmp_variable_power_of_two_64(i64 %x, i64 %y) {
40 ; CHECK-LABEL: and_ncmp_variable_power_of_two_64:
42 ; CHECK-NEXT: srd 3, 3, 4
43 ; CHECK-NEXT: xori 3, 3, 1
46 %and = and i64 %x, %shl
47 %cmp = icmp ne i64 %and, %shl