[libcxx-commits] [libcxx] [clang] [libclc] [libcxxabi] [lld] [flang] [clang-tools-extra] [libunwind] [llvm] [lldb] [libc] [compiler-rt] [Legalizer] Soften EXTRACT_ELEMENT on ppcf128 (PR #77412)

Matt Arsenault via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jan 9 19:35:27 PST 2024


================
@@ -68,8 +68,18 @@ define dso_local zeroext i32 @func(double noundef %0, double noundef %1) #0 {
   ; CHECK-LABEL:      __adddf3
 }
 
+; To check ppc_fp128 soften without crash
+define zeroext i1 @ppcf128_soften(ppc_fp128 %a) #0 {
+entry:
+  %fpclass = tail call i1 @llvm.is.fpclass.ppcf128(ppc_fp128 %a, i32 100)
+  ret i1 %fpclass
+
+  ; CHECK-LABEL: ppcf128_soften
----------------
arsenm wrote:

should check function content not just the label 

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


More information about the libcxx-commits mailing list