brintos

brintos / llvm-project-archived public Read only

0
0
Text · 796 B · ad4c4af Raw
40 lines · plain
1; Test the three-operand forms of AND.2;3; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z196 | FileCheck %s4 5; Check NRK.6define i32 @f1(i32 %a, i32 %b, i32 %c) {7; CHECK-LABEL: f1:8; CHECK: nrk %r2, %r3, %r49; CHECK: br %r1410  %and = and i32 %b, %c11  ret i32 %and12}13 14; Check that we can still use NR in obvious cases.15define i32 @f2(i32 %a, i32 %b) {16; CHECK-LABEL: f2:17; CHECK: nr %r2, %r318; CHECK: br %r1419  %and = and i32 %a, %b20  ret i32 %and21}22 23; Check NGRK.24define i64 @f3(i64 %a, i64 %b, i64 %c) {25; CHECK-LABEL: f3:26; CHECK: ngrk %r2, %r3, %r427; CHECK: br %r1428  %and = and i64 %b, %c29  ret i64 %and30}31 32; Check that we can still use NGR in obvious cases.33define i64 @f4(i64 %a, i64 %b) {34; CHECK-LABEL: f4:35; CHECK: ngr %r2, %r336; CHECK: br %r1437  %and = and i64 %a, %b38  ret i64 %and39}40