From de8188fb927a8b6cab193a631bfb8c40d5afc12e Mon Sep 17 00:00:00 2001 From: Evgeny Astigeevich Date: Wed, 11 Jan 2017 16:23:28 +0000 Subject: [PATCH] [ARM] Fix test CodeGen/ARM/fpcmp_ueq.ll broken by rL290616 Commit rL290616 (https://reviews.llvm.org/rL290616) changed a checking command for the triple arm-apple-darwin in LLVM::CodeGen/ARM/fpcmp_ueq.ll. As a result of the changes the test could fail for the valid generated code. These changes fixes the test to check only instructions we would expect. Differential Revision: https://reviews.llvm.org/D28159 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291678 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/ARM/fpcmp_ueq.ll | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/CodeGen/ARM/fpcmp_ueq.ll b/test/CodeGen/ARM/fpcmp_ueq.ll index ba14140cdc4..c1696c9be1b 100644 --- a/test/CodeGen/ARM/fpcmp_ueq.ll +++ b/test/CodeGen/ARM/fpcmp_ueq.ll @@ -9,7 +9,11 @@ entry: } ; CHECK-ARMv4-LABEL: f7: -; CHECK-ARMv4: moveq r6, #1 +; CHECK-ARMv4-DAG: bl ___eqsf2 +; CHECK-ARMv4-DAG: bl ___unordsf2 +; CHECK-ARMv4: cmp r0, #0 +; CHECK-ARMv4: movne r0, #1 +; CHECK-ARMv4: orrs r0, r0, ; CHECK-ARMv4: moveq r0, #42 ; CHECK-ARMv7-LABEL: f7: -- 2.40.0