[llvm] r266454 - [SystemZ] Fix large tests broken by conditional returns.

Marcin Koscielnicki via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 15 10:24:41 PDT 2016


Author: koriakin
Date: Fri Apr 15 12:24:40 2016
New Revision: 266454

URL: http://llvm.org/viewvc/llvm-project?rev=266454&view=rev
Log:
[SystemZ] Fix large tests broken by conditional returns.

These were broken by D17339.

Differential Revision: http://reviews.llvm.org/D19158

Modified:
    llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-01.py
    llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-03.py
    llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-04.py
    llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-05.py
    llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-06.py
    llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-09.py
    llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-10.py
    llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-11.py
    llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-12.py

Modified: llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-01.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-01.py?rev=266454&r1=266453&r2=266454&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-01.py (original)
+++ llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-01.py Fri Apr 15 12:24:40 2016
@@ -70,6 +70,8 @@
 branch_blocks = 10
 main_size = 0xffd8
 
+print '@global = global i32 0'
+
 print 'define void @f1(i8 *%base, i32 *%stop, i32 %limit) {'
 print 'entry:'
 print '  br label %before0'
@@ -101,5 +103,6 @@ for i in xrange(branch_blocks):
     print ''
     print 'after%d:' % i
 
+print '  %dummy = load volatile i32, i32 *@global'
 print '  ret void'
 print '}'

Modified: llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-03.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-03.py?rev=266454&r1=266453&r2=266454&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-03.py (original)
+++ llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-03.py Fri Apr 15 12:24:40 2016
@@ -70,6 +70,8 @@
 branch_blocks = 8
 main_size = 0xffcc
 
+print '@global = global i32 0'
+
 print 'define void @f1(i8 *%base, i8 *%stop, i32 %limit) {'
 print 'entry:'
 print '  br label %before0'
@@ -103,5 +105,6 @@ for i in xrange(branch_blocks):
     print ''
     print 'after%d:' % i
 
+print '  %dummy = load volatile i32, i32 *@global'
 print '  ret void'
 print '}'

Modified: llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-04.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-04.py?rev=266454&r1=266453&r2=266454&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-04.py (original)
+++ llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-04.py Fri Apr 15 12:24:40 2016
@@ -74,6 +74,8 @@
 branch_blocks = 8
 main_size = 0xffcc
 
+print '@global = global i32 0'
+
 print 'define void @f1(i8 *%base, i8 *%stop, i64 %limit) {'
 print 'entry:'
 print '  br label %before0'
@@ -107,5 +109,6 @@ for i in xrange(branch_blocks):
     print ''
     print 'after%d:' % i
 
+print '  %dummy = load volatile i32, i32 *@global'
 print '  ret void'
 print '}'

Modified: llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-05.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-05.py?rev=266454&r1=266453&r2=266454&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-05.py (original)
+++ llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-05.py Fri Apr 15 12:24:40 2016
@@ -74,6 +74,8 @@
 branch_blocks = 8
 main_size = 0xffcc
 
+print '@global = global i32 0'
+
 print 'define void @f1(i8 *%base, i8 *%stop) {'
 print 'entry:'
 print '  br label %before0'
@@ -105,5 +107,6 @@ for i in xrange(branch_blocks):
     print ''
     print 'after%d:' % i
 
+print '  %dummy = load volatile i32, i32 *@global'
 print '  ret void'
 print '}'

Modified: llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-06.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-06.py?rev=266454&r1=266453&r2=266454&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-06.py (original)
+++ llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-06.py Fri Apr 15 12:24:40 2016
@@ -74,6 +74,8 @@
 branch_blocks = 8
 main_size = 0xffcc
 
+print '@global = global i32 0'
+
 print 'define void @f1(i8 *%base, i8 *%stop) {'
 print 'entry:'
 print '  br label %before0'
@@ -105,5 +107,6 @@ for i in xrange(branch_blocks):
     print ''
     print 'after%d:' % i
 
+print '  %dummy = load volatile i32, i32 *@global'
 print '  ret void'
 print '}'

Modified: llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-09.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-09.py?rev=266454&r1=266453&r2=266454&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-09.py (original)
+++ llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-09.py Fri Apr 15 12:24:40 2016
@@ -70,6 +70,8 @@
 branch_blocks = 8
 main_size = 0xffcc
 
+print '@global = global i32 0'
+
 print 'define void @f1(i8 *%base, i8 *%stop, i32 %limit) {'
 print 'entry:'
 print '  br label %before0'
@@ -103,5 +105,6 @@ for i in xrange(branch_blocks):
     print ''
     print 'after%d:' % i
 
+print '  %dummy = load volatile i32, i32 *@global'
 print '  ret void'
 print '}'

Modified: llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-10.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-10.py?rev=266454&r1=266453&r2=266454&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-10.py (original)
+++ llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-10.py Fri Apr 15 12:24:40 2016
@@ -74,6 +74,8 @@
 branch_blocks = 8
 main_size = 0xffcc
 
+print '@global = global i32 0'
+
 print 'define void @f1(i8 *%base, i8 *%stop, i64 %limit) {'
 print 'entry:'
 print '  br label %before0'
@@ -107,5 +109,6 @@ for i in xrange(branch_blocks):
     print ''
     print 'after%d:' % i
 
+print '  %dummy = load volatile i32, i32 *@global'
 print '  ret void'
 print '}'

Modified: llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-11.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-11.py?rev=266454&r1=266453&r2=266454&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-11.py (original)
+++ llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-11.py Fri Apr 15 12:24:40 2016
@@ -90,6 +90,8 @@
 branch_blocks = 8
 main_size = 0xffc6
 
+print '@global = global i32 0'
+
 print 'define void @f1(i8 *%base, i32 *%stopa, i32 *%stopb) {'
 print 'entry:'
 print '  br label %before0'
@@ -123,5 +125,6 @@ for i in xrange(branch_blocks):
     print ''
     print 'after%d:' % i
 
+print '  %dummy = load volatile i32, i32 *@global'
 print '  ret void'
 print '}'

Modified: llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-12.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-12.py?rev=266454&r1=266453&r2=266454&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-12.py (original)
+++ llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-12.py Fri Apr 15 12:24:40 2016
@@ -90,6 +90,8 @@
 branch_blocks = 8
 main_size = 0xffb4
 
+print '@global = global i32 0'
+
 print 'define void @f1(i8 *%base, i64 *%stopa, i64 *%stopb) {'
 print 'entry:'
 print '  br label %before0'
@@ -123,5 +125,6 @@ for i in xrange(branch_blocks):
     print ''
     print 'after%d:' % i
 
+print '  %dummy = load volatile i32, i32 *@global'
 print '  ret void'
 print '}'




More information about the llvm-commits mailing list