[llvm] r230810 - Update SystemZ/Large test generators to handle new gep IR syntax

David Blaikie dblaikie at gmail.com
Fri Feb 27 15:29:40 PST 2015


Author: dblaikie
Date: Fri Feb 27 17:29:39 2015
New Revision: 230810

URL: http://llvm.org/viewvc/llvm-project?rev=230810&view=rev
Log:
Update SystemZ/Large test generators to handle new gep IR syntax

Modified:
    llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-01.py
    llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-02.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-07.py
    llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-08.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
    llvm/trunk/test/CodeGen/SystemZ/Large/spill-01.py
    llvm/trunk/test/CodeGen/SystemZ/Large/spill-02.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=230810&r1=230809&r2=230810&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-01.py (original)
+++ llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-01.py Fri Feb 27 17:29:39 2015
@@ -78,7 +78,7 @@ print ''
 for i in xrange(branch_blocks):
     next = 'before%d' % (i + 1) if i + 1 < branch_blocks else 'main'
     print 'before%d:' % i
-    print '  %%bstop%d = getelementptr i32 *%%stop, i64 %d' % (i, i)
+    print '  %%bstop%d = getelementptr i32, i32 *%%stop, i64 %d' % (i, i)
     print '  %%bcur%d = load i32 , i32 *%%bstop%d' % (i, i)
     print '  %%btest%d = icmp eq i32 %%limit, %%bcur%d' % (i, i)
     print '  br i1 %%btest%d, label %%after0, label %%%s' % (i, next)
@@ -90,11 +90,11 @@ for i in xrange(0, main_size, 6):
     a, b = b, a + b
     offset = 4096 + b % 500000
     value = a % 256
-    print '  %%ptr%d = getelementptr i8 *%%base, i64 %d' % (i, offset)
+    print '  %%ptr%d = getelementptr i8, i8 *%%base, i64 %d' % (i, offset)
     print '  store volatile i8 %d, i8 *%%ptr%d' % (value, i)
 
 for i in xrange(branch_blocks):
-    print '  %%astop%d = getelementptr i32 *%%stop, i64 %d' % (i, i + 25)
+    print '  %%astop%d = getelementptr i32, i32 *%%stop, i64 %d' % (i, i + 25)
     print '  %%acur%d = load i32 , i32 *%%astop%d' % (i, i)
     print '  %%atest%d = icmp eq i32 %%limit, %%acur%d' % (i, i)
     print '  br i1 %%atest%d, label %%main, label %%after%d' % (i, i)

Modified: llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-02.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-02.py?rev=230810&r1=230809&r2=230810&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-02.py (original)
+++ llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-02.py Fri Feb 27 17:29:39 2015
@@ -71,7 +71,7 @@ for i in xrange(blocks):
     other = 'end' if 2 * i < blocks else 'b0'
     print 'b%d:' % i
     print '  store volatile i8 %d, i8 *%%base' % value
-    print '  %%astop%d = getelementptr i32 *%%stop, i64 %d' % (i, i)
+    print '  %%astop%d = getelementptr i32, i32 *%%stop, i64 %d' % (i, i)
     print '  %%acur%d = load i32 , i32 *%%astop%d' % (i, i)
     print '  %%atest%d = icmp eq i32 %%limit, %%acur%d' % (i, i)
     print '  br i1 %%atest%d, label %%%s, label %%%s' % (i, other, next)

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=230810&r1=230809&r2=230810&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-03.py (original)
+++ llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-03.py Fri Feb 27 17:29:39 2015
@@ -78,7 +78,7 @@ print ''
 for i in xrange(branch_blocks):
     next = 'before%d' % (i + 1) if i + 1 < branch_blocks else 'main'
     print 'before%d:' % i
-    print '  %%bstop%d = getelementptr i8 *%%stop, i64 %d' % (i, i)
+    print '  %%bstop%d = getelementptr i8, i8 *%%stop, i64 %d' % (i, i)
     print '  %%bcur%d = load i8 , i8 *%%bstop%d' % (i, i)
     print '  %%bext%d = sext i8 %%bcur%d to i32' % (i, i)
     print '  %%btest%d = icmp eq i32 %%limit, %%bext%d' % (i, i)
@@ -91,11 +91,11 @@ for i in xrange(0, main_size, 6):
     a, b = b, a + b
     offset = 4096 + b % 500000
     value = a % 256
-    print '  %%ptr%d = getelementptr i8 *%%base, i64 %d' % (i, offset)
+    print '  %%ptr%d = getelementptr i8, i8 *%%base, i64 %d' % (i, offset)
     print '  store volatile i8 %d, i8 *%%ptr%d' % (value, i)
 
 for i in xrange(branch_blocks):
-    print '  %%astop%d = getelementptr i8 *%%stop, i64 %d' % (i, i + 25)
+    print '  %%astop%d = getelementptr i8, i8 *%%stop, i64 %d' % (i, i + 25)
     print '  %%acur%d = load i8 , i8 *%%astop%d' % (i, i)
     print '  %%aext%d = sext i8 %%acur%d to i32' % (i, i)
     print '  %%atest%d = icmp eq i32 %%limit, %%aext%d' % (i, i)

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=230810&r1=230809&r2=230810&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-04.py (original)
+++ llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-04.py Fri Feb 27 17:29:39 2015
@@ -82,7 +82,7 @@ print ''
 for i in xrange(branch_blocks):
     next = 'before%d' % (i + 1) if i + 1 < branch_blocks else 'main'
     print 'before%d:' % i
-    print '  %%bstop%d = getelementptr i8 *%%stop, i64 %d' % (i, i)
+    print '  %%bstop%d = getelementptr i8, i8 *%%stop, i64 %d' % (i, i)
     print '  %%bcur%d = load i8 , i8 *%%bstop%d' % (i, i)
     print '  %%bext%d = sext i8 %%bcur%d to i64' % (i, i)
     print '  %%btest%d = icmp eq i64 %%limit, %%bext%d' % (i, i)
@@ -95,11 +95,11 @@ for i in xrange(0, main_size, 6):
     a, b = b, a + b
     offset = 4096 + b % 500000
     value = a % 256
-    print '  %%ptr%d = getelementptr i8 *%%base, i64 %d' % (i, offset)
+    print '  %%ptr%d = getelementptr i8, i8 *%%base, i64 %d' % (i, offset)
     print '  store volatile i8 %d, i8 *%%ptr%d' % (value, i)
 
 for i in xrange(branch_blocks):
-    print '  %%astop%d = getelementptr i8 *%%stop, i64 %d' % (i, i + 25)
+    print '  %%astop%d = getelementptr i8, i8 *%%stop, i64 %d' % (i, i + 25)
     print '  %%acur%d = load i8 , i8 *%%astop%d' % (i, i)
     print '  %%aext%d = sext i8 %%acur%d to i64' % (i, i)
     print '  %%atest%d = icmp eq i64 %%limit, %%aext%d' % (i, i)

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=230810&r1=230809&r2=230810&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-05.py (original)
+++ llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-05.py Fri Feb 27 17:29:39 2015
@@ -94,7 +94,7 @@ for i in xrange(0, main_size, 6):
     a, b = b, a + b
     offset = 4096 + b % 500000
     value = a % 256
-    print '  %%ptr%d = getelementptr i8 *%%base, i64 %d' % (i, offset)
+    print '  %%ptr%d = getelementptr i8, i8 *%%base, i64 %d' % (i, offset)
     print '  store volatile i8 %d, i8 *%%ptr%d' % (value, i)
 
 for i in xrange(branch_blocks):

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=230810&r1=230809&r2=230810&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-06.py (original)
+++ llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-06.py Fri Feb 27 17:29:39 2015
@@ -94,7 +94,7 @@ for i in xrange(0, main_size, 6):
     a, b = b, a + b
     offset = 4096 + b % 500000
     value = a % 256
-    print '  %%ptr%d = getelementptr i8 *%%base, i64 %d' % (i, offset)
+    print '  %%ptr%d = getelementptr i8, i8 *%%base, i64 %d' % (i, offset)
     print '  store volatile i8 %d, i8 *%%ptr%d' % (value, i)
 
 for i in xrange(branch_blocks):

Modified: llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-07.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-07.py?rev=230810&r1=230809&r2=230810&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-07.py (original)
+++ llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-07.py Fri Feb 27 17:29:39 2015
@@ -39,7 +39,7 @@ print 'define void @f1(i8 *%base, i32 *%
 print 'entry:'
 
 for i in xrange(branch_blocks - 1, -1, -1):
-    print '  %%countptr%d = getelementptr i32 *%%counts, i64 %d' % (i, i)
+    print '  %%countptr%d = getelementptr i32, i32 *%%counts, i64 %d' % (i, i)
     print '  %%initcount%d = load i32 , i32 *%%countptr%d' % (i, i)
     print '  br label %%loop%d' % i
     
@@ -54,7 +54,7 @@ for i in xrange(0, main_size, 6):
     a, b = b, a + b
     offset = 4096 + b % 500000
     value = a % 256
-    print '  %%ptr%d = getelementptr i8 *%%base, i64 %d' % (i, offset)
+    print '  %%ptr%d = getelementptr i8, i8 *%%base, i64 %d' % (i, offset)
     print '  store volatile i8 %d, i8 *%%ptr%d' % (value, i)
 
 for i in xrange(branch_blocks):

Modified: llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-08.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-08.py?rev=230810&r1=230809&r2=230810&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-08.py (original)
+++ llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-08.py Fri Feb 27 17:29:39 2015
@@ -40,7 +40,7 @@ print 'define void @f1(i8 *%base, i64 *%
 print 'entry:'
 
 for i in xrange(branch_blocks - 1, -1, -1):
-    print '  %%countptr%d = getelementptr i64 *%%counts, i64 %d' % (i, i)
+    print '  %%countptr%d = getelementptr i64, i64 *%%counts, i64 %d' % (i, i)
     print '  %%initcount%d = load i64 , i64 *%%countptr%d' % (i, i)
     print '  br label %%loop%d' % i
     
@@ -55,7 +55,7 @@ for i in xrange(0, main_size, 6):
     a, b = b, a + b
     offset = 4096 + b % 500000
     value = a % 256
-    print '  %%ptr%d = getelementptr i8 *%%base, i64 %d' % (i, offset)
+    print '  %%ptr%d = getelementptr i8, i8 *%%base, i64 %d' % (i, offset)
     print '  store volatile i8 %d, i8 *%%ptr%d' % (value, i)
 
 for i in xrange(branch_blocks):

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=230810&r1=230809&r2=230810&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-09.py (original)
+++ llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-09.py Fri Feb 27 17:29:39 2015
@@ -78,7 +78,7 @@ print ''
 for i in xrange(branch_blocks):
     next = 'before%d' % (i + 1) if i + 1 < branch_blocks else 'main'
     print 'before%d:' % i
-    print '  %%bstop%d = getelementptr i8 *%%stop, i64 %d' % (i, i)
+    print '  %%bstop%d = getelementptr i8, i8 *%%stop, i64 %d' % (i, i)
     print '  %%bcur%d = load i8 , i8 *%%bstop%d' % (i, i)
     print '  %%bext%d = sext i8 %%bcur%d to i32' % (i, i)
     print '  %%btest%d = icmp ult i32 %%limit, %%bext%d' % (i, i)
@@ -91,11 +91,11 @@ for i in xrange(0, main_size, 6):
     a, b = b, a + b
     offset = 4096 + b % 500000
     value = a % 256
-    print '  %%ptr%d = getelementptr i8 *%%base, i64 %d' % (i, offset)
+    print '  %%ptr%d = getelementptr i8, i8 *%%base, i64 %d' % (i, offset)
     print '  store volatile i8 %d, i8 *%%ptr%d' % (value, i)
 
 for i in xrange(branch_blocks):
-    print '  %%astop%d = getelementptr i8 *%%stop, i64 %d' % (i, i + 25)
+    print '  %%astop%d = getelementptr i8, i8 *%%stop, i64 %d' % (i, i + 25)
     print '  %%acur%d = load i8 , i8 *%%astop%d' % (i, i)
     print '  %%aext%d = sext i8 %%acur%d to i32' % (i, i)
     print '  %%atest%d = icmp ult i32 %%limit, %%aext%d' % (i, i)

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=230810&r1=230809&r2=230810&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-10.py (original)
+++ llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-10.py Fri Feb 27 17:29:39 2015
@@ -82,7 +82,7 @@ print ''
 for i in xrange(branch_blocks):
     next = 'before%d' % (i + 1) if i + 1 < branch_blocks else 'main'
     print 'before%d:' % i
-    print '  %%bstop%d = getelementptr i8 *%%stop, i64 %d' % (i, i)
+    print '  %%bstop%d = getelementptr i8, i8 *%%stop, i64 %d' % (i, i)
     print '  %%bcur%d = load i8 , i8 *%%bstop%d' % (i, i)
     print '  %%bext%d = sext i8 %%bcur%d to i64' % (i, i)
     print '  %%btest%d = icmp ult i64 %%limit, %%bext%d' % (i, i)
@@ -95,11 +95,11 @@ for i in xrange(0, main_size, 6):
     a, b = b, a + b
     offset = 4096 + b % 500000
     value = a % 256
-    print '  %%ptr%d = getelementptr i8 *%%base, i64 %d' % (i, offset)
+    print '  %%ptr%d = getelementptr i8, i8 *%%base, i64 %d' % (i, offset)
     print '  store volatile i8 %d, i8 *%%ptr%d' % (value, i)
 
 for i in xrange(branch_blocks):
-    print '  %%astop%d = getelementptr i8 *%%stop, i64 %d' % (i, i + 25)
+    print '  %%astop%d = getelementptr i8, i8 *%%stop, i64 %d' % (i, i + 25)
     print '  %%acur%d = load i8 , i8 *%%astop%d' % (i, i)
     print '  %%aext%d = sext i8 %%acur%d to i64' % (i, i)
     print '  %%atest%d = icmp ult i64 %%limit, %%aext%d' % (i, i)

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=230810&r1=230809&r2=230810&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-11.py (original)
+++ llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-11.py Fri Feb 27 17:29:39 2015
@@ -111,7 +111,7 @@ for i in xrange(0, main_size, 6):
     a, b = b, a + b
     offset = 4096 + b % 500000
     value = a % 256
-    print '  %%ptr%d = getelementptr i8 *%%base, i64 %d' % (i, offset)
+    print '  %%ptr%d = getelementptr i8, i8 *%%base, i64 %d' % (i, offset)
     print '  store volatile i8 %d, i8 *%%ptr%d' % (value, i)
 
 for i in xrange(branch_blocks):

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=230810&r1=230809&r2=230810&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-12.py (original)
+++ llvm/trunk/test/CodeGen/SystemZ/Large/branch-range-12.py Fri Feb 27 17:29:39 2015
@@ -111,7 +111,7 @@ for i in xrange(0, main_size, 6):
     a, b = b, a + b
     offset = 4096 + b % 500000
     value = a % 256
-    print '  %%ptr%d = getelementptr i8 *%%base, i64 %d' % (i, offset)
+    print '  %%ptr%d = getelementptr i8, i8 *%%base, i64 %d' % (i, offset)
     print '  store volatile i8 %d, i8 *%%ptr%d' % (value, i)
 
 for i in xrange(branch_blocks):

Modified: llvm/trunk/test/CodeGen/SystemZ/Large/spill-01.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/SystemZ/Large/spill-01.py?rev=230810&r1=230809&r2=230810&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SystemZ/Large/spill-01.py (original)
+++ llvm/trunk/test/CodeGen/SystemZ/Large/spill-01.py Fri Feb 27 17:29:39 2015
@@ -25,7 +25,7 @@ print ''
 print 'define void @f1(i64 *%base0, i64 *%base1) {'
 
 for i in range(count):
-    print '  %%ptr%d = getelementptr i64 *%%base%d, i64 %d' % (i, i % 2, i / 2)
+    print '  %%ptr%d = getelementptr i64, i64 *%%base%d, i64 %d' % (i, i % 2, i / 2)
     print '  %%val%d = load i64 , i64 *%%ptr%d' % (i, i)
     print ''
 

Modified: llvm/trunk/test/CodeGen/SystemZ/Large/spill-02.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/SystemZ/Large/spill-02.py?rev=230810&r1=230809&r2=230810&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SystemZ/Large/spill-02.py (original)
+++ llvm/trunk/test/CodeGen/SystemZ/Large/spill-02.py Fri Feb 27 17:29:39 2015
@@ -29,7 +29,7 @@ print 'entry:'
 
 # Make the allocation big, so that it goes at the top of the frame.
 print '  %array = alloca [1000 x i64]'
-print '  %area = getelementptr [1000 x i64] *%array, i64 0, i64 0'
+print '  %area = getelementptr [1000 x i64], [1000 x i64] *%array, i64 0, i64 0'
 print '  %%base = call i64 *@foo(i64 *%%area%s)' % (', i64 0' * args)
 print ''
 
@@ -37,7 +37,7 @@ print ''
 # another for %base, so we need 14 live values.
 count = 14
 for i in range(count):
-    print '  %%ptr%d = getelementptr i64 *%%base, i64 %d' % (i, i / 2)
+    print '  %%ptr%d = getelementptr i64, i64 *%%base, i64 %d' % (i, i / 2)
     print '  %%val%d = load volatile i64 , i64 *%%ptr%d' % (i, i)
     print ''
 





More information about the llvm-commits mailing list