[llvm] [DirectX] legalize usub.sat (PR #135288)
Farzon Lotfi via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 11 11:32:34 PDT 2025
================
@@ -0,0 +1,60 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
+; RUN: opt -S -dxil-intrinsic-expansion -mtriple=dxil-pc-shadermodel6.3-library %s | FileCheck %s
+
+; Make sure dxil operation function calls for pow are generated.
+
+define noundef i16 @usub_sat_i16(i16 noundef %a, i16 noundef %b) {
+; CHECK-LABEL: define noundef i16 @usub_sat_i16(
+; CHECK-SAME: i16 noundef [[A:%.*]], i16 noundef [[B:%.*]]) {
+; CHECK-NEXT: [[ENTRY:.*:]]
----------------
farzonl wrote:
its tool generated. I tried changing it and see if the tool would leave it alone, but the next run of update_test_checks.py changes the formatting back
https://github.com/llvm/llvm-project/pull/135288
More information about the llvm-commits
mailing list