[llvm] [IR] Add nowrap flags for trunc instruction (PR #85592)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 28 03:04:50 PDT 2024


================
@@ -32,5 +36,9 @@ first:                                            ; preds = %entry
   %rr = zext i32 %ss to i64
   %mm = or disjoint i32 %a, 0
   %nn = or i32 %a, 0
+  %tuu = trunc nuw i32 %a to i16
+  %tss = trunc nsw i32 %a to i16
+  %tuss = trunc nuw nsw i32 %a to i16
+  %tt = trunc i32 %a to i16
   br label %second
 }
----------------
arsenm wrote:

Test vectors? 

https://github.com/llvm/llvm-project/pull/85592


More information about the llvm-commits mailing list