Index: test/CodeGen/SystemZ/Large/branch-range-01.py =================================================================== --- test/CodeGen/SystemZ/Large/branch-range-01.py +++ test/CodeGen/SystemZ/Large/branch-range-01.py @@ -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 @@ print '' print 'after%d:' % i +print ' %dummy = load volatile i32, i32 *@global' print ' ret void' print '}' Index: test/CodeGen/SystemZ/Large/branch-range-03.py =================================================================== --- test/CodeGen/SystemZ/Large/branch-range-03.py +++ test/CodeGen/SystemZ/Large/branch-range-03.py @@ -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 @@ print '' print 'after%d:' % i +print ' %dummy = load volatile i32, i32 *@global' print ' ret void' print '}' Index: test/CodeGen/SystemZ/Large/branch-range-04.py =================================================================== --- test/CodeGen/SystemZ/Large/branch-range-04.py +++ test/CodeGen/SystemZ/Large/branch-range-04.py @@ -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 @@ print '' print 'after%d:' % i +print ' %dummy = load volatile i32, i32 *@global' print ' ret void' print '}' Index: test/CodeGen/SystemZ/Large/branch-range-05.py =================================================================== --- test/CodeGen/SystemZ/Large/branch-range-05.py +++ test/CodeGen/SystemZ/Large/branch-range-05.py @@ -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 @@ print '' print 'after%d:' % i +print ' %dummy = load volatile i32, i32 *@global' print ' ret void' print '}' Index: test/CodeGen/SystemZ/Large/branch-range-06.py =================================================================== --- test/CodeGen/SystemZ/Large/branch-range-06.py +++ test/CodeGen/SystemZ/Large/branch-range-06.py @@ -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 @@ print '' print 'after%d:' % i +print ' %dummy = load volatile i32, i32 *@global' print ' ret void' print '}' Index: test/CodeGen/SystemZ/Large/branch-range-09.py =================================================================== --- test/CodeGen/SystemZ/Large/branch-range-09.py +++ test/CodeGen/SystemZ/Large/branch-range-09.py @@ -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 @@ print '' print 'after%d:' % i +print ' %dummy = load volatile i32, i32 *@global' print ' ret void' print '}' Index: test/CodeGen/SystemZ/Large/branch-range-10.py =================================================================== --- test/CodeGen/SystemZ/Large/branch-range-10.py +++ test/CodeGen/SystemZ/Large/branch-range-10.py @@ -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 @@ print '' print 'after%d:' % i +print ' %dummy = load volatile i32, i32 *@global' print ' ret void' print '}' Index: test/CodeGen/SystemZ/Large/branch-range-11.py =================================================================== --- test/CodeGen/SystemZ/Large/branch-range-11.py +++ test/CodeGen/SystemZ/Large/branch-range-11.py @@ -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 @@ print '' print 'after%d:' % i +print ' %dummy = load volatile i32, i32 *@global' print ' ret void' print '}' Index: test/CodeGen/SystemZ/Large/branch-range-12.py =================================================================== --- test/CodeGen/SystemZ/Large/branch-range-12.py +++ test/CodeGen/SystemZ/Large/branch-range-12.py @@ -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 @@ print '' print 'after%d:' % i +print ' %dummy = load volatile i32, i32 *@global' print ' ret void' print '}'