[llvm] 3d471d7 - Revert "[Test] Add failing test for PR49087"

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 8 12:47:11 PST 2021


Author: Nico Weber
Date: 2021-02-08T15:46:29-05:00
New Revision: 3d471d7f06ff66aaf23d2dee9283e3a38a33d499

URL: https://github.com/llvm/llvm-project/commit/3d471d7f06ff66aaf23d2dee9283e3a38a33d499
DIFF: https://github.com/llvm/llvm-project/commit/3d471d7f06ff66aaf23d2dee9283e3a38a33d499.diff

LOG: Revert "[Test] Add failing test for PR49087"

This reverts commit 0fc1738eb75d613b9e16143b83e7cb80512e84eb.
The test passes (unexpectedly, due to the XFAIL: *) when x86 isn't
the default triple (such as on an arm machine).

Added: 
    

Modified: 
    

Removed: 
    llvm/test/CodeGen/X86/pr49087.ll


################################################################################
diff  --git a/llvm/test/CodeGen/X86/pr49087.ll b/llvm/test/CodeGen/X86/pr49087.ll
deleted file mode 100644
index a480581edd82..000000000000
--- a/llvm/test/CodeGen/X86/pr49087.ll
+++ /dev/null
@@ -1,30 +0,0 @@
-; RUN: llc -o - -global-isel < %s 2>&1 | FileCheck %s
-; REQUIRES: asserts
-; XFAIL: *
-
-define i32 @test_01(i32* %p, i64 %len, i32 %x) {
-; CHECK-LABEL: test_01
-
-entry:
-  %scevgep = getelementptr i32, i32* %p, i64 -1
-  br label %loop
-
-loop:                                             ; preds = %backedge, %entry
-  %iv = phi i64 [ %iv.next, %backedge ], [ %len, %entry ]
-  %iv.next = add i64 %iv, -1
-  %cond_1 = icmp eq i64 %iv, 0
-  br i1 %cond_1, label %exit, label %backedge
-
-backedge:                                         ; preds = %loop
-  %scevgep1 = getelementptr i32, i32* %scevgep, i64 %iv
-  %loaded = load atomic i32, i32* %scevgep1 unordered, align 4
-  %cond_2 = icmp eq i32 %loaded, %x
-  br i1 %cond_2, label %failure, label %loop
-
-exit:                                             ; preds = %loop
-  ret i32 -1
-
-failure:
-  unreachable
-}
-


        


More information about the llvm-commits mailing list