[llvm] Add more generic `half` tests (NFC) (PR #157211)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 12 06:00:25 PDT 2025


================
@@ -0,0 +1,31 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
+; This is the BPF counterpart to the generic `half.ll` test as BPF has compilation errors on some
+; operations.
+; RUN: llc %s -o - -mtriple=bpfel | FileCheck %s
+
+define half @from_bits(i16 %bits) nounwind {
+; CHECK-LABEL: from_bits:
+; CHECK:       # %bb.0:
+; CHECK-NEXT:    w0 = w1
+; CHECK-NEXT:    exit
+    %f = bitcast i16 %bits to half
+    ret half %f
----------------
nikic wrote:

Indentation mismatch between first two and last function.

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


More information about the llvm-commits mailing list