[llvm] r267092 - ARM: fix test for Windows division

Saleem Abdulrasool via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 21 18:03:38 PDT 2016


Author: compnerd
Date: Thu Apr 21 20:03:38 2016
New Revision: 267092

URL: http://llvm.org/viewvc/llvm-project?rev=267092&view=rev
Log:
ARM: fix test for Windows division

This was meant to be part of SVN r267080.  cbz cannot use a high register, which
would be silently truncated.  This has now been fixed.

Modified:
    llvm/trunk/test/CodeGen/ARM/Windows/division.ll

Modified: llvm/trunk/test/CodeGen/ARM/Windows/division.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/Windows/division.ll?rev=267092&r1=267091&r2=267092&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/Windows/division.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/Windows/division.ll Thu Apr 21 20:03:38 2016
@@ -32,8 +32,8 @@ entry:
 }
 
 ; CHECK-LABEL: sdiv64:
-; CHECK: orr.w r12, r0, r1
-; CHECK-NEXT: cbz r12
+; CHECK: orr.w r4, r0, r1
+; CHECK-NEXT: cbz r4
 ; CHECK: b
 ; CHECK: udf.w #249
 ; CHECK: bl __rt_sdiv64
@@ -45,8 +45,8 @@ entry:
 }
 
 ; CHECK-LABEL: udiv64:
-; CHECK: orr.w r12, r0, r1
-; CHECK-NEXT: cbz r12
+; CHECK: orr.w r4, r0, r1
+; CHECK-NEXT: cbz r4
 ; CHECK: b
 ; CHECK: udf.w #249
 ; CHECK: bl __rt_udiv64




More information about the llvm-commits mailing list