1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple ppc64le-linux -ppc-asm-full-reg-names -global-isel -o - < %s \
5 define i64 @test_andi64(i64 %a, i64 %b) {
6 ; CHECK-LABEL: test_andi64:
8 ; CHECK-NEXT: and r3, r3, r4
14 define i64 @test_nandi64(i64 %a, i64 %b) {
15 ; CHECK-LABEL: test_nandi64:
17 ; CHECK-NEXT: nand r3, r3, r4
20 %neg = xor i64 %and, -1
24 define i64 @test_andci64(i64 %a, i64 %b) {
25 ; CHECK-LABEL: test_andci64:
27 ; CHECK-NEXT: andc r3, r3, r4
30 %and = and i64 %a, %neg
34 define i64 @test_ori64(i64 %a, i64 %b) {
35 ; CHECK-LABEL: test_ori64:
37 ; CHECK-NEXT: or r3, r3, r4
43 define i64 @test_orci64(i64 %a, i64 %b) {
44 ; CHECK-LABEL: test_orci64:
46 ; CHECK-NEXT: orc r3, r3, r4
53 define i64 @test_nori64(i64 %a, i64 %b) {
54 ; CHECK-LABEL: test_nori64:
56 ; CHECK-NEXT: nor r3, r3, r4
59 %neg = xor i64 %or, -1
63 define i64 @test_xori64(i64 %a, i64 %b) {
64 ; CHECK-LABEL: test_xori64:
66 ; CHECK-NEXT: xor r3, r3, r4