From 6db2e9fdb0a35e27e6fc86a1485918b78717a425 Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Wed, 1 Aug 2012 22:49:41 +0200 Subject: [PATCH] radeon/llvm: Add a predicated JUMP instruction Signed-off-by: Tom Stellard --- src/gallium/drivers/radeon/R600Instructions.td | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/gallium/drivers/radeon/R600Instructions.td b/src/gallium/drivers/radeon/R600Instructions.td index 6f2ab1f..1819742 100644 --- a/src/gallium/drivers/radeon/R600Instructions.td +++ b/src/gallium/drivers/radeon/R600Instructions.td @@ -121,6 +121,15 @@ def PRED_X : AMDGPUInst <(outs R600_Predicate_Bit:$dst), +let isTerminator = 1, isBranch = 1 in { +def JUMP : InstR600 <0x10, + (outs), + (ins brtarget:$target, R600_Pred:$p), + "JUMP $target ($p)", + [], AnyALU + >; +} + class R600_REDUCTION inst, dag ins, string asm, list pattern, InstrItinClass itin = VecALU> : InstR600