From d002919334e83904447957f666f0d48704c5e55b Mon Sep 17 00:00:00 2001 From: Xavier Leroy Date: Sat, 13 Apr 2019 10:11:05 +0200 Subject: Emulate the "isel" instruction on non-EREF PPC processors On non-EREF processors it expands to instructions that destroy GPR0. Reflect this in the Asm semantics for Pisel. --- powerpc/Asm.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'powerpc/Asm.v') diff --git a/powerpc/Asm.v b/powerpc/Asm.v index 748058c4..e821c6c4 100644 --- a/powerpc/Asm.v +++ b/powerpc/Asm.v @@ -866,7 +866,7 @@ Definition exec_instr (f: function) (i: instruction) (rs: regset) (m: mem) : out | Vint n => if Int.eq n Int.zero then rs#r2 else rs#r1 | _ => Vundef end in - Next (nextinstr (rs#rd <- v)) m + Next (nextinstr (rs #rd <- v #GPR0 <- Vundef)) m | Plbz rd cst r1 => load1 Mint8unsigned rd cst r1 rs m | Plbzx rd r1 r2 => -- cgit