[llvm] Fix some X86 tests (PR #101944)
Jonas Paulsson via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 5 01:56:02 PDT 2024
https://github.com/JonPsson1 created https://github.com/llvm/llvm-project/pull/101944
extractelement-shuffle.ll: Test for bugfix in DAGCombiner, moved to Generic.
2010-07-06-DbgCrash.ll and 2006-10-02-BoolRetCrash.ll: Bugfixes in X86, run tests with X86 backend.
>From 357746b646a975520708f3caa835298f1114e68e Mon Sep 17 00:00:00 2001
From: Jonas Paulsson <paulson1 at linux.ibm.com>
Date: Mon, 5 Aug 2024 10:45:00 +0200
Subject: [PATCH] Fix some X86 tests
---
llvm/test/CodeGen/{X86 => Generic}/extractelement-shuffle.ll | 1 -
llvm/test/CodeGen/X86/2006-10-02-BoolRetCrash.ll | 3 +--
llvm/test/CodeGen/X86/2010-07-06-DbgCrash.ll | 3 +--
3 files changed, 2 insertions(+), 5 deletions(-)
rename llvm/test/CodeGen/{X86 => Generic}/extractelement-shuffle.ll (95%)
diff --git a/llvm/test/CodeGen/X86/extractelement-shuffle.ll b/llvm/test/CodeGen/Generic/extractelement-shuffle.ll
similarity index 95%
rename from llvm/test/CodeGen/X86/extractelement-shuffle.ll
rename to llvm/test/CodeGen/Generic/extractelement-shuffle.ll
index 1b04c41d5c6fe..d1ba9a845800d 100644
--- a/llvm/test/CodeGen/X86/extractelement-shuffle.ll
+++ b/llvm/test/CodeGen/Generic/extractelement-shuffle.ll
@@ -1,5 +1,4 @@
; RUN: llc < %s
-; REQUIRES: default_triple
; Examples that exhibits a bug in DAGCombine. The case is triggered by the
; following program. The bug is DAGCombine assumes that the bit convert
diff --git a/llvm/test/CodeGen/X86/2006-10-02-BoolRetCrash.ll b/llvm/test/CodeGen/X86/2006-10-02-BoolRetCrash.ll
index 609dbc155ed91..3b59c11c06684 100644
--- a/llvm/test/CodeGen/X86/2006-10-02-BoolRetCrash.ll
+++ b/llvm/test/CodeGen/X86/2006-10-02-BoolRetCrash.ll
@@ -1,6 +1,5 @@
-; RUN: llc < %s
+; RUN: llc -march=x86 < %s
; PR933
-; REQUIRES: default_triple
define fastcc i1 @test() {
ret i1 true
diff --git a/llvm/test/CodeGen/X86/2010-07-06-DbgCrash.ll b/llvm/test/CodeGen/X86/2010-07-06-DbgCrash.ll
index e67ee3123ff1c..e7bdbca0e9427 100644
--- a/llvm/test/CodeGen/X86/2010-07-06-DbgCrash.ll
+++ b/llvm/test/CodeGen/X86/2010-07-06-DbgCrash.ll
@@ -1,5 +1,4 @@
-; RUN: llc -O0 -relocation-model pic < %s -o /dev/null
-; REQUIRES: default_triple
+; RUN: llc -mtriple=x86_64-- -O0 -relocation-model pic < %s -o /dev/null
; PR7545
@.str = private constant [4 x i8] c"one\00", align 1 ; <ptr> [#uses=1]
More information about the llvm-commits
mailing list