Index: tests_lit/llvm2ice_tests/callindirect.pnacl.ll |
diff --git a/tests_lit/llvm2ice_tests/callindirect.pnacl.ll b/tests_lit/llvm2ice_tests/callindirect.pnacl.ll |
index 9450c726476d07ac9033cfed3afd405fe797c129..75c6a84a3f0fa0650c26a310ba3723cb172fcd3c 100644 |
--- a/tests_lit/llvm2ice_tests/callindirect.pnacl.ll |
+++ b/tests_lit/llvm2ice_tests/callindirect.pnacl.ll |
@@ -51,9 +51,13 @@ entry: |
call void %__1() |
call void %__1() |
call void %__1() |
+ call void %__1() |
ret void |
} |
; CHECK-LABEL: CallIndirect |
+; Use the first call as a barrier in case the register allocator decides to use |
+; a scratch register for it but a common preserved register for the rest. |
+; CHECK: call |
; CHECK: call [[REGISTER:[a-z]+]] |
; CHECK: call [[REGISTER]] |
; CHECK: call [[REGISTER]] |