[llvm] [SelectionDAG] Mark LowerTypeTests as required and remove intrinsic handling from #142939 (PR #179249)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 2 07:40:13 PST 2026
================
@@ -1,47 +1,32 @@
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
-; RUN: llc < %s -mtriple=i686-- -O0 | FileCheck %s --check-prefix=X86
-; RUN: llc < %s -mtriple=x86_64-- -O0 | FileCheck %s --check-prefix=X64
-
-define void @public_type_test() {
-; X86-LABEL: public_type_test:
-; X86: # %bb.0: # %bb
-; X86-NEXT: movb $1, %al
-; X86-NEXT: # %bb.1: # %bb1
-; X86-NEXT: retl
-;
-; X64-LABEL: public_type_test:
-; X64: # %bb.0: # %bb
-; X64-NEXT: movb $1, %al
-; X64-NEXT: # %bb.1: # %bb1
-; X64-NEXT: retq
-bb:
- %call = call i1 @llvm.public.type.test(ptr null, metadata !"typeinfo")
- br label %bb1
-
-bb1:
- call void @llvm.assume(i1 %call)
- ret void
-}
+; RUN: opt -passes='lowertypetests' -S %s \
----------------
nikic wrote:
Should not be running opt in these tests.
What happens now if this IR is provided to the backend? A selection failure? You likely need to add a reportFatalUsageError() for this.
https://github.com/llvm/llvm-project/pull/179249
More information about the llvm-commits
mailing list