[PATCH] D144309: [HLSL] add max/min library functions

Xiang Li via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 2 13:41:02 PST 2023


python3kgae added inline comments.


================
Comment at: clang/test/CodeGenHLSL/builtins/max.hlsl:12
+// NO_HALF: call i16 @llvm.smax.i16(
+int16_t test_max_short ( int16_t p0, int16_t p1 ) {
+  return max ( p0, p1 );
----------------
Just guard 16bit integer tests with #ifdef __HLSL_ENABLE_16_BIT.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D144309/new/

https://reviews.llvm.org/D144309



More information about the cfe-commits mailing list