34 lines · plain
1; RUN: llc < %s -mtriple=nvptx64 -mcpu=sm_20 | FileCheck %s2; RUN: %if ptxas %{ llc < %s -mtriple=nvptx64 -mcpu=sm_20 | %ptxas-verify %}3 4; CHECK-LABEL: m2and_rr5define i1 @m2and_rr(i1 %a, i1 %b) {6; CHECK: and.b16 %rs{{[0-9]+}}, %rs{{[0-9]+}}, %rs{{[0-9]+}}7; CHECK-NOT: mul8 %r = mul i1 %a, %b9 ret i1 %r10}11 12; CHECK-LABEL: m2and_ri13define i1 @m2and_ri(i1 %a) {14; CHECK-NOT: mul15 %r = mul i1 %a, 116 ret i1 %r17}18 19; CHECK-LABEL: select2or20define i1 @select2or(i1 %a, i1 %b) {21; CHECK: or.b16 %rs{{[0-9]+}}, %rs{{[0-9]+}}, %rs{{[0-9]+}}22; CHECK-NOT: selp23 %r = select i1 %a, i1 1, i1 %b24 ret i1 %r25}26 27; CHECK-LABEL: select2and28define i1 @select2and(i1 %a, i1 %b) {29; CHECK: and.b16 %rs{{[0-9]+}}, %rs{{[0-9]+}}, %rs{{[0-9]+}}30; CHECK-NOT: selp31 %r = select i1 %a, i1 %b, i1 032 ret i1 %r33}34