OSDN Git Service

AMDGPU: Add fract intrinsic
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 28 May 2016 00:19:52 +0000 (00:19 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 28 May 2016 00:19:52 +0000 (00:19 +0000)
commit14cb586d5e58350a56b3922edbc04db0139fc014
tree443cc326586bf926c84839fab54e38365ac83b31
parent6be2be53529c3030a606d072821a2ee01e6e85df
AMDGPU: Add fract intrinsic

Remove broken patterns matching it. This was matching the
unsafe math pattern and expanding the fix for the buggy instruction
from the pattern. The problems are also on CI. Remove the workarounds
and only use fract with unsafe math or from the intrinsic.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271078 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/IntrinsicsAMDGPU.td
lib/Target/AMDGPU/CIInstructions.td
lib/Target/AMDGPU/SIISelLowering.cpp
lib/Target/AMDGPU/SIInstructions.td
test/CodeGen/AMDGPU/fract.f64.ll
test/CodeGen/AMDGPU/fract.ll
test/CodeGen/AMDGPU/llvm.amdgcn.fract.ll [new file with mode: 0644]