[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:30 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"
----------------
nikic wrote:

And then pass it as an argument to `opt` and add two RUN lines, one with `n8:16:32:64` and one with just `n64` for example. That way you can see the the difference it makes. Pass `--check-prefixes=CHECK,ONLY64` and `--check-prefixes=CHECK,MULTIPLE` or something like that to FileCheck.

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


More information about the llvm-commits mailing list