From 3240585f1508c8f4be8cb0baf889e9f8dea2a1f3 Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Tue, 18 Jun 2013 23:03:24 +0200 Subject: [PATCH] Add a cos/sin pattern --- lib/Target/R600/R600Instructions.td | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Target/R600/R600Instructions.td b/lib/Target/R600/R600Instructions.td index 83d735f..cec96a1 100644 --- a/lib/Target/R600/R600Instructions.td +++ b/lib/Target/R600/R600Instructions.td @@ -1131,6 +1131,8 @@ let Predicates = [isR600] in { def UINT_TO_FLT_r600 : UINT_TO_FLT_Common<0x6d>; def SIN_r600 : SIN_Common<0x6E>; def COS_r600 : COS_Common<0x6F>; + def : Pat<(fcos f32:$src),(COS_r600 $src)>; + def : Pat<(fsin f32:$src),(SIN_r600 $src)>; def ASHR_r600 : ASHR_Common<0x70>; def LSHR_r600 : LSHR_Common<0x71>; def LSHL_r600 : LSHL_Common<0x72>; -- 1.8.2.1