From 3b0e244316028b367bc3f01c06eac7bf9104f8b3 Mon Sep 17 00:00:00 2001 From: "Nicolas B. Pierron" Date: Fri, 6 Sep 2019 22:29:04 +0200 Subject: [PATCH] Fix binary64.clif to work with fold_redundant_jump. (#987) --- .../filetests/filetests/isa/x86/binary64.clif | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/cranelift/filetests/filetests/isa/x86/binary64.clif b/cranelift/filetests/filetests/isa/x86/binary64.clif index d1b862c85a..9b1f86beff 100644 --- a/cranelift/filetests/filetests/isa/x86/binary64.clif +++ b/cranelift/filetests/filetests/isa/x86/binary64.clif @@ -746,11 +746,14 @@ ebb7: ; asm: ebb1: ebb1: - return ; bin: c3 + return ; bin: c3 ; asm: ebb2: ebb2: - jump ebb1 ; bin: eb fd + ; Add a no-op instruction to prevent fold_redundant_jump from removing this block. + ; asm: notq %rcx + [-,%rcx] v5000 = bnot v1 ; bin: 48 f7 d1 + jump ebb1 ; bin: eb fa } ; CPU flag instructions. @@ -1349,11 +1352,14 @@ ebb7: ; asm: ebb1x: ebb1: - return ; bin: c3 + return ; bin: c3 ; asm: ebb2x: ebb2: - jump ebb1 ; bin: eb fd + ; Add a no-op instruction to prevent fold_redundant_jump from removing this block. + ; asm: notl %ecx + [-,%rcx] v5000 = bnot v1 ; bin: f7 d1 + jump ebb1 ; bin: eb fb }