From 71d5a2540a98c81f5bcaeb48805e0e2881f530ef Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 16 Apr 2017 16:01:22 +0000 Subject: Vendor import of llvm trunk r300422: https://llvm.org/svn/llvm-project/llvm/trunk@300422 --- test/CodeGen/Thumb2/cbnz.ll | 2 +- test/CodeGen/Thumb2/float-cmp.ll | 16 +-- test/CodeGen/Thumb2/ifcvt-compare.ll | 2 +- test/CodeGen/Thumb2/ifcvt-rescan-bug-2016-08-22.ll | 4 +- test/CodeGen/Thumb2/intrinsics-coprocessor.ll | 93 ++++++++++++++++ test/CodeGen/Thumb2/stack_guard_remat.ll | 8 +- test/CodeGen/Thumb2/tbb-removeadd.mir | 124 +++++++++++++++++++++ test/CodeGen/Thumb2/thumb2-pack.ll | 2 +- test/CodeGen/Thumb2/thumb2-rev.ll | 2 +- test/CodeGen/Thumb2/thumb2-smla.ll | 4 +- test/CodeGen/Thumb2/thumb2-smul.ll | 2 +- test/CodeGen/Thumb2/thumb2-sxt-uxt.ll | 51 +++++---- test/CodeGen/Thumb2/thumb2-sxt_rot.ll | 31 +++--- test/CodeGen/Thumb2/thumb2-uxt_rot.ll | 41 +++---- test/CodeGen/Thumb2/thumb2-uxtb.ll | 120 +++++++++----------- test/CodeGen/Thumb2/v8_IT_4.ll | 5 +- 16 files changed, 360 insertions(+), 147 deletions(-) create mode 100644 test/CodeGen/Thumb2/intrinsics-coprocessor.ll create mode 100644 test/CodeGen/Thumb2/tbb-removeadd.mir (limited to 'test/CodeGen/Thumb2') diff --git a/test/CodeGen/Thumb2/cbnz.ll b/test/CodeGen/Thumb2/cbnz.ll index 5c0bb5bfe1cd..e11c4038678c 100644 --- a/test/CodeGen/Thumb2/cbnz.ll +++ b/test/CodeGen/Thumb2/cbnz.ll @@ -26,7 +26,7 @@ t: call void @x() call void @x() call void @x() - ; CHECK: cbnz + ; CHECK: cbz %q = icmp eq i32 %y, 0 br i1 %q, label %t2, label %f diff --git a/test/CodeGen/Thumb2/float-cmp.ll b/test/CodeGen/Thumb2/float-cmp.ll index 77b0999337c6..834812cddd6d 100644 --- a/test/CodeGen/Thumb2/float-cmp.ll +++ b/test/CodeGen/Thumb2/float-cmp.ll @@ -15,7 +15,7 @@ define i1 @cmp_f_false(float %a, float %b) { define i1 @cmp_f_oeq(float %a, float %b) { ; CHECK-LABEL: cmp_f_oeq: ; NONE: bl __aeabi_fcmpeq -; HARD: vcmpe.f32 +; HARD: vcmp.f32 ; HARD: moveq r0, #1 %1 = fcmp oeq float %a, %b ret i1 %1 @@ -56,7 +56,7 @@ define i1 @cmp_f_one(float %a, float %b) { ; CHECK-LABEL: cmp_f_one: ; NONE: bl __aeabi_fcmpgt ; NONE: bl __aeabi_fcmplt -; HARD: vcmpe.f32 +; HARD: vcmp.f32 ; HARD: movmi r0, #1 ; HARD: movgt r0, #1 %1 = fcmp one float %a, %b @@ -73,7 +73,7 @@ define i1 @cmp_f_ord(float %a, float %b) { ; CHECK-LABEL: cmp_f_ueq: ; NONE: bl __aeabi_fcmpeq ; NONE: bl __aeabi_fcmpun -; HARD: vcmpe.f32 +; HARD: vcmp.f32 ; HARD: moveq r0, #1 ; HARD: movvs r0, #1 %1 = fcmp ueq float %a, %b @@ -122,7 +122,7 @@ define i1 @cmp_f_ule(float %a, float %b) { define i1 @cmp_f_une(float %a, float %b) { ; CHECK-LABEL: cmp_f_une: ; NONE: bl __aeabi_fcmpeq -; HARD: vcmpe.f32 +; HARD: vcmp.f32 ; HARD: movne r0, #1 %1 = fcmp une float %a, %b ret i1 %1 @@ -154,7 +154,7 @@ define i1 @cmp_d_oeq(double %a, double %b) { ; CHECK-LABEL: cmp_d_oeq: ; NONE: bl __aeabi_dcmpeq ; SP: bl __aeabi_dcmpeq -; DP: vcmpe.f64 +; DP: vcmp.f64 ; DP: moveq r0, #1 %1 = fcmp oeq double %a, %b ret i1 %1 @@ -201,7 +201,7 @@ define i1 @cmp_d_one(double %a, double %b) { ; NONE: bl __aeabi_dcmplt ; SP: bl __aeabi_dcmpgt ; SP: bl __aeabi_dcmplt -; DP: vcmpe.f64 +; DP: vcmp.f64 ; DP: movmi r0, #1 ; DP: movgt r0, #1 %1 = fcmp one double %a, %b @@ -259,7 +259,7 @@ define i1 @cmp_d_ueq(double %a, double %b) { ; NONE: bl __aeabi_dcmpun ; SP: bl __aeabi_dcmpeq ; SP: bl __aeabi_dcmpun -; DP: vcmpe.f64 +; DP: vcmp.f64 ; DP: moveq r0, #1 ; DP: movvs r0, #1 %1 = fcmp ueq double %a, %b @@ -290,7 +290,7 @@ define i1 @cmp_d_une(double %a, double %b) { ; CHECK-LABEL: cmp_d_une: ; NONE: bl __aeabi_dcmpeq ; SP: bl __aeabi_dcmpeq -; DP: vcmpe.f64 +; DP: vcmp.f64 ; DP: movne r0, #1 %1 = fcmp une double %a, %b ret i1 %1 diff --git a/test/CodeGen/Thumb2/ifcvt-compare.ll b/test/CodeGen/Thumb2/ifcvt-compare.ll index 7b5ce4fa3f5f..688195f579eb 100644 --- a/test/CodeGen/Thumb2/ifcvt-compare.ll +++ b/test/CodeGen/Thumb2/ifcvt-compare.ll @@ -4,7 +4,7 @@ declare void @x() define void @f0(i32 %x) optsize { ; CHECK-LABEL: f0: - ; CHECK: cbnz + ; CHECK: cbz %p = icmp eq i32 %x, 0 br i1 %p, label %t, label %f diff --git a/test/CodeGen/Thumb2/ifcvt-rescan-bug-2016-08-22.ll b/test/CodeGen/Thumb2/ifcvt-rescan-bug-2016-08-22.ll index ae3084dcc62e..65ee4283b3f7 100644 --- a/test/CodeGen/Thumb2/ifcvt-rescan-bug-2016-08-22.ll +++ b/test/CodeGen/Thumb2/ifcvt-rescan-bug-2016-08-22.ll @@ -3,7 +3,7 @@ target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64" target triple = "thumbv7-unknown-linux-gnueabihf" ; Function Attrs: argmemonly nounwind -declare void @llvm.lifetime.start(i64, i8* nocapture) #0 +declare void @llvm.lifetime.start.p0i8(i64, i8* nocapture) #0 ; Function Attrs: nounwind declare void @_ZNSaIcEC2Ev() unnamed_addr #0 align 2 @@ -25,7 +25,7 @@ define hidden void @_ZN4llvm14DOTGraphTraitsIPNS_13ScheduleDAGMIEE17getEdgeAttri br label %3 ;