diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2014-05-02 15:41:47 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2014-05-02 15:41:47 +0000 |
commit | ab2fed6622aa220d95f2379126f1c0ba2e730b2a (patch) | |
tree | be90090a87be15983308937f7bf9f1058bd5e4bd /lib | |
parent | 1d6859256c388bcbe00f1eb04a10d54a655d1f2f (diff) | |
download | llvm-ab2fed6622aa220d95f2379126f1c0ba2e730b2a.tar.gz llvm-ab2fed6622aa220d95f2379126f1c0ba2e730b2a.tar.bz2 llvm-ab2fed6622aa220d95f2379126f1c0ba2e730b2a.tar.xz |
R600: Expand vector sin and cos.
v2: move code to AMDGPUISelLowering.cpp
squash with tests (both EG and SI)
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207845 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/R600/AMDGPUISelLowering.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/R600/AMDGPUISelLowering.cpp b/lib/Target/R600/AMDGPUISelLowering.cpp index 8adf7a96f0..2c751a8be5 100644 --- a/lib/Target/R600/AMDGPUISelLowering.cpp +++ b/lib/Target/R600/AMDGPUISelLowering.cpp @@ -246,6 +246,7 @@ AMDGPUTargetLowering::AMDGPUTargetLowering(TargetMachine &TM) : MVT::SimpleValueType VT = FloatTypes[x]; setOperationAction(ISD::FABS, VT, Expand); setOperationAction(ISD::FADD, VT, Expand); + setOperationAction(ISD::FCOS, VT, Expand); setOperationAction(ISD::FDIV, VT, Expand); setOperationAction(ISD::FPOW, VT, Expand); setOperationAction(ISD::FFLOOR, VT, Expand); @@ -253,6 +254,7 @@ AMDGPUTargetLowering::AMDGPUTargetLowering(TargetMachine &TM) : setOperationAction(ISD::FMUL, VT, Expand); setOperationAction(ISD::FRINT, VT, Expand); setOperationAction(ISD::FSQRT, VT, Expand); + setOperationAction(ISD::FSIN, VT, Expand); setOperationAction(ISD::FSUB, VT, Expand); setOperationAction(ISD::SELECT, VT, Expand); } |