diff options
Diffstat (limited to 'llvm/test/CodeGen/SystemZ/Large/spill-01.py')
-rw-r--r-- | llvm/test/CodeGen/SystemZ/Large/spill-01.py | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/llvm/test/CodeGen/SystemZ/Large/spill-01.py b/llvm/test/CodeGen/SystemZ/Large/spill-01.py index f59f607d5be..2831804df9e 100644 --- a/llvm/test/CodeGen/SystemZ/Large/spill-01.py +++ b/llvm/test/CodeGen/SystemZ/Large/spill-01.py @@ -18,23 +18,26 @@ # CHECK: lay [[REG:%r[0-5]]], 4096(%r15) # CHECK: mvc {{[0-9]+}}(8,{{%r[0-9]+}}), 8([[REG]]) # CHECK: br %r14 + +from __future__ import print_function + count = 500 -print 'declare void @foo()' -print '' -print 'define void @f1(i64 *%base0, i64 *%base1) {' +print('declare void @foo()') +print('') +print('define void @f1(i64 *%base0, i64 *%base1) {') for i in range(count): - 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 '' + 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('') -print ' call void @foo()' -print '' +print(' call void @foo()') +print('') for i in range(count): - print ' store i64 %%val%d, i64 *%%ptr%d' % (i, i) + print(' store i64 %%val%d, i64 *%%ptr%d' % (i, i)) -print '' -print ' ret void' -print '}' +print('') +print(' ret void') +print('}') |