[llvm] 0fc1738 - [Test] Add failing test for PR49087
Adhemerval Zanella via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 8 10:17:07 PST 2021
I am seeing this on aarch64-linux-gnu:
Unexpectedly Passed Tests (1): LLVM :: CodeGen/X86/pr49087.ll
Should it fail for aarch64 as well?
On 08/02/2021 03:19, Max Kazantsev via llvm-commits wrote:
>
> Author: Max Kazantsev
> Date: 2021-02-08T13:18:22+07:00
> New Revision: 0fc1738eb75d613b9e16143b83e7cb80512e84eb
>
> URL: https://github.com/llvm/llvm-project/commit/0fc1738eb75d613b9e16143b83e7cb80512e84eb
> DIFF: https://github.com/llvm/llvm-project/commit/0fc1738eb75d613b9e16143b83e7cb80512e84eb.diff
>
> LOG: [Test] Add failing test for PR49087
>
> Added:
> llvm/test/CodeGen/X86/pr49087.ll
>
> Modified:
>
>
> Removed:
>
>
>
> ################################################################################
> diff --git a/llvm/test/CodeGen/X86/pr49087.ll b/llvm/test/CodeGen/X86/pr49087.ll
> new file mode 100644
> index 000000000000..a480581edd82
> --- /dev/null
> +++ b/llvm/test/CodeGen/X86/pr49087.ll
> @@ -0,0 +1,30 @@
> +; 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
> +}
> +
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
More information about the llvm-commits
mailing list