summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorMichel Danzer <michel.daenzer@amd.com>2013-02-22 11:22:49 +0000
committerMichel Danzer <michel.daenzer@amd.com>2013-02-22 11:22:49 +0000
commitc3ea4041b9a84f15c5957fd282f93d10870e07e7 (patch)
tree2843568b12033ea20b3928bc683fd4e06d6274ff /llvm
parent0ba797e8f7f02fcced18759e0fd912728bb38c2e (diff)
downloadbcm5719-llvm-c3ea4041b9a84f15c5957fd282f93d10870e07e7.tar.gz
bcm5719-llvm-c3ea4041b9a84f15c5957fd282f93d10870e07e7.zip
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> llvm-svn: 175885
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Target/R600/SIInstructions.td4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/R600/SIInstructions.td b/llvm/lib/Target/R600/SIInstructions.td
index 55b4fa89ba1..b83276f1326 100644
--- a/llvm/lib/Target/R600/SIInstructions.td
+++ b/llvm/lib/Target/R600/SIInstructions.td
@@ -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))]
>;
OpenPOWER on IntegriCloud