summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Danzer <michel.daenzer@amd.com>2013-02-22 11:22:49 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-02-27 17:10:39 +0000
commit9b28f1592b213e569e81a2d7c1e90b127e23a574 (patch)
treeb04c92d1b9d3dcf04c3620167a2dd226cd985df1
parent3328ba2773f2e18efaee8a0cfd244066f1533961 (diff)
R600/SI: Add pattern for fceil.
9 more little piglits with radeonsi. NOTE: This is a candidate for the Mesa stable branch. Reviewed-by: Tom Stellard <thomas.stellard@amd.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175885 91177308-0d34-0410-b5e6-96231b3b80d8 (cherry picked from commit 86f7e67db3d226be6529acb54c24d1058823beb9)
-rw-r--r--lib/Target/R600/SIInstructions.td4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/R600/SIInstructions.td b/lib/Target/R600/SIInstructions.td
index 998d74c5fb7..3e9a6bf9d6a 100644
--- a/lib/Target/R600/SIInstructions.td
+++ b/lib/Target/R600/SIInstructions.td
@@ -619,7 +619,9 @@ defm V_FRACT_F32 : VOP1_32 <0x00000020, "V_FRACT_F32",
[(set VReg_32:$dst, (AMDGPUfract VSrc_32:$src0))]
>;
defm V_TRUNC_F32 : VOP1_32 <0x00000021, "V_TRUNC_F32", []>;
-defm V_CEIL_F32 : VOP1_32 <0x00000022, "V_CEIL_F32", []>;
+defm V_CEIL_F32 : VOP1_32 <0x00000022, "V_CEIL_F32",
+ [(set VReg_32:$dst, (fceil VSrc_32:$src0))]
+>;
defm V_RNDNE_F32 : VOP1_32 <0x00000023, "V_RNDNE_F32",
[(set VReg_32:$dst, (frint VSrc_32:$src0))]
>;