[llvm] [Transforms] Resolve FIXME: Pick the smallest legal type that fits (PR #79158)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 29 11:21:31 PST 2024


================
@@ -0,0 +1,351 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
+; RUN: opt < %s -passes='float2int' -S | FileCheck %s
+target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
+
+;
+; Positive tests
+;
+
+define i16 @simple1(i8 %a) {
----------------
nikic wrote:

Don't just copy over the full set of tests from the other file -- add tests that are specifically relevant to your patch.

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


More information about the llvm-commits mailing list