summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2012-07-19 13:29:15 -0400
committerTom Stellard <[email protected]>2012-07-27 17:08:07 +0000
commitad95bcb31fcf49015446f5158dfaf97fefac75cd (patch)
treecf48a3c6bad2cfd3b60a5b6163f57cef2d80d030 /src/gallium
parent4cab682184640242d1e6f034f2b6bd7c4378c162 (diff)
radeon/llvm: Add bitconvert patterns for SI
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/radeon/SIInstructions.td6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/SIInstructions.td b/src/gallium/drivers/radeon/SIInstructions.td
index e832ab50447..1fb5df10cee 100644
--- a/src/gallium/drivers/radeon/SIInstructions.td
+++ b/src/gallium/drivers/radeon/SIInstructions.td
@@ -911,6 +911,12 @@ def : Insert_Element <f32, v4f32, VReg_32, VReg_128, 7, sel_w>;
def : Vector_Build <v4f32, VReg_32>;
def : Vector_Build <v4i32, SReg_32>;
+def : BitConvert <i32, f32, SReg_32>;
+def : BitConvert <i32, f32, VReg_32>;
+
+def : BitConvert <f32, i32, SReg_32>;
+def : BitConvert <f32, i32, VReg_32>;
+
/*
def : Pat<
(int_SI_vs_load_buffer_index),