R600/SI: Add pattern for fceil.
authorMichel Danzer <michel.daenzer@amd.com>
Fri, 22 Feb 2013 11:22:49 +0000 (11:22 +0000)
committerMichel Danzer <michel.daenzer@amd.com>
Fri, 22 Feb 2013 11:22:49 +0000 (11:22 +0000)
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

lib/Target/R600/SIInstructions.td

index 55b4fa89ba1a61dc01bbd4ff380535d04fc3a53e..b83276f13265c008861b6968aab1f4f3790fce16 100644 (file)
@@ -567,7 +567,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))]
 >;