================ @@ -0,0 +1,85 @@ +// RUN: %clang_cc1 -finclude-default-header -triple \ +// RUN: dxil-pc-shadermodel6.3-library %s \ +// RUN: -emit-llvm -O1 -o - | FileCheck %s + +//CHECK-LABEL: define noundef i1 @_Z12test_or_boolbb( +//CHECK-SAME: i1 noundef [[X:%.*]], i1 noundef [[Y:%.*]]) local_unnamed_addr #[[ATTR0:[0-9]+]] { +//CHECK-NEXT: [[ENTRY:.*:]] +//CHECK-NEXT: [[HLSL_OR:%.*]] = or i1 [[x]], [[y]] +//CHECK-NEXT: ret i1 [[HLSL_OR]] +//CHECK_NEXT: } +bool test_or_bool(bool x, bool y) ---------------- damyanp wrote:
Suggest naming this `test_or_scalar` to be consistent with `and.hlsl`. https://github.com/llvm/llvm-project/pull/128979 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits