[PATCH 1/1] R600: FMA is VecALU only instruction

Jan Vesely jan.vesely at rutgers.edu
Thu Oct 9 16:59:55 PDT 2014


Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
---

Fixes hangs/failures of sin/cos/tan tests on my EG card

 lib/Target/R600/R600Instructions.td | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Target/R600/R600Instructions.td b/lib/Target/R600/R600Instructions.td
index a883c83..114c6e4 100644
--- a/lib/Target/R600/R600Instructions.td
+++ b/lib/Target/R600/R600Instructions.td
@@ -917,7 +917,7 @@ class MULADD_IEEE_Common <bits<5> inst> : R600_3OP <
 
 class FMA_Common <bits<5> inst> : R600_3OP <
   inst, "FMA",
-  [(set f32:$dst, (fma f32:$src0, f32:$src1, f32:$src2))]
+  [(set f32:$dst, (fma f32:$src0, f32:$src1, f32:$src2))], VecALU
 >;
 
 class CNDE_Common <bits<5> inst> : R600_3OP <
-- 
1.9.3




More information about the llvm-commits mailing list