projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
942940a
)
R600/SI: Add pattern for AMDGPU.trunc intrinsic
author
Tom Stellard
<thomas.stellard@amd.com>
Mon, 6 May 2013 23:02:00 +0000
(23:02 +0000)
committer
Tom Stellard
<thomas.stellard@amd.com>
Mon, 6 May 2013 23:02:00 +0000
(23:02 +0000)
Patch by: Michel Dänzer
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181263
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/R600/SIInstructions.td
patch
|
blob
|
history
diff --git
a/lib/Target/R600/SIInstructions.td
b/lib/Target/R600/SIInstructions.td
index fcae109fea7c85bd0ac611377b0050fa32fea719..691a0406455d0d2961f9455d1dbad1e5f9a025d5 100644
(file)
--- a/
lib/Target/R600/SIInstructions.td
+++ b/
lib/Target/R600/SIInstructions.td
@@
-624,7
+624,9
@@
defm V_MOV_FED_B32 : VOP1_32 <0x00000009, "V_MOV_FED_B32", []>;
defm V_FRACT_F32 : VOP1_32 <0x00000020, "V_FRACT_F32",
[(set f32:$dst, (AMDGPUfract f32:$src0))]
>;
-defm V_TRUNC_F32 : VOP1_32 <0x00000021, "V_TRUNC_F32", []>;
+defm V_TRUNC_F32 : VOP1_32 <0x00000021, "V_TRUNC_F32",
+ [(set f32:$dst, (int_AMDGPU_trunc f32:$src0))]
+>;
defm V_CEIL_F32 : VOP1_32 <0x00000022, "V_CEIL_F32",
[(set f32:$dst, (fceil f32:$src0))]
>;