aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2012-05-11 09:31:00 -0400
committerTom Stellard <[email protected]>2012-05-11 09:43:47 -0400
commit4d11a6a0c798301863d5b202703dcca37dc24e7c (patch)
tree3bd90a1542e850b32037f30d379015bc0b1bf610
parent96956dc5076fc03b9290368ca90e3f3b870ee613 (diff)
radeon/llvm: Fix Evergreen/Cayman tablegen predicates
Some Evergreen/Cayman instructions were being enabled for SI.
-rw-r--r--src/gallium/drivers/radeon/R600Instructions.td4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/R600Instructions.td b/src/gallium/drivers/radeon/R600Instructions.td
index a18240f09bd..9b59171de43 100644
--- a/src/gallium/drivers/radeon/R600Instructions.td
+++ b/src/gallium/drivers/radeon/R600Instructions.td
@@ -227,7 +227,9 @@ def isEG : Predicate<"Subtarget.device()"
def isCayman : Predicate<"Subtarget.device()"
"->getDeviceFlag() == OCL_DEVICE_CAYMAN">;
def isEGorCayman : Predicate<"Subtarget.device()"
- "->getGeneration() >= AMDILDeviceInfo::HD5XXX">;
+ "->getGeneration() == AMDILDeviceInfo::HD5XXX"
+ "|| Subtarget.device()->getGeneration() =="
+ "AMDILDeviceInfo::HD6XXX">;
def isR600toCayman : Predicate<
"Subtarget.device()->getGeneration() <= AMDILDeviceInfo::HD6XXX">;