R600: Add SHADOWCUBE to TEX_SHADOW pattern
authorTom Stellard <thomas.stellard@amd.com>
Fri, 21 Dec 2012 20:11:59 +0000 (20:11 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 21 Dec 2012 20:11:59 +0000 (20:11 +0000)
Patch by: Vadim Girlin

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170921 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/R600/R600Instructions.td

index 5900794421c5c39d8f09a0bd150b077dea7ef353..63646451b44ec56017c6e05188bf8347e58e6a6f 100644 (file)
@@ -338,7 +338,7 @@ class R600_TEX <bits<11> inst, string opName, list<dag> pattern,
 def TEX_SHADOW : PatLeaf<
   (imm),
   [{uint32_t TType = (uint32_t)N->getZExtValue();
-    return (TType >= 6 && TType <= 8) || TType == 11 || TType == 12;
+    return (TType >= 6 && TType <= 8) || (TType >= 11 && TType <= 13);
   }]
 >;