R600/SI: Add processor types for each SI variant
authorTom Stellard <thomas.stellard@amd.com>
Fri, 5 Apr 2013 23:31:35 +0000 (23:31 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 5 Apr 2013 23:31:35 +0000 (23:31 +0000)
Reviewed-by: Christian König <christian.koenig@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178928 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/R600/AMDILDeviceInfo.cpp
lib/Target/R600/Processors.td
test/CodeGen/R600/imm.ll
test/CodeGen/R600/llvm.SI.fs.interp.constant.ll
test/CodeGen/R600/llvm.SI.sample.ll
test/CodeGen/R600/lshl.ll
test/CodeGen/R600/lshr.ll
test/CodeGen/R600/mulhu.ll
test/CodeGen/R600/seto.ll
test/CodeGen/R600/setuo.ll

index 9605fbe63340d1cd85548e08b94d210468704304..19792b73e2d95f024e6427ea243e37a01b8da1ff 100644 (file)
@@ -79,7 +79,9 @@ AMDGPUDevice* getDeviceFromName(const std::string &deviceName,
           " on 32bit pointers!");
 #endif
     return new AMDGPUNIDevice(ptr);
-  } else if (deviceName == "SI") {
+  } else if (deviceName == "SI" ||
+             deviceName == "tahiti" || deviceName == "pitcairn" ||
+             deviceName == "verde"  || deviceName == "oland") {
     return new AMDGPUSIDevice(ptr);
   } else {
 #if DEBUG
index 868810c613b3e211702b65ae4aec523ff81498cd..3034c7988265e1d40b36bb09d276d79ee0491323 100644 (file)
@@ -26,5 +26,8 @@ def : Proc<"barts",      R600_EG_Itin, [FeatureByteAddress, FeatureImages]>;
 def : Proc<"turks",      R600_EG_Itin, [FeatureByteAddress, FeatureImages]>;
 def : Proc<"caicos",     R600_EG_Itin, [FeatureByteAddress, FeatureImages]>;
 def : Proc<"cayman",     R600_EG_Itin, [FeatureByteAddress, FeatureImages, FeatureFP64]>;
-def : Proc<"SI", SI_Itin, [Feature64BitPtr]>;
-
+def : Proc<"SI",         SI_Itin, [Feature64BitPtr, FeatureFP64]>;
+def : Proc<"tahiti",     SI_Itin, [Feature64BitPtr, FeatureFP64]>;
+def : Proc<"pitcairn",   SI_Itin, [Feature64BitPtr, FeatureFP64]>;
+def : Proc<"verde",      SI_Itin, [Feature64BitPtr, FeatureFP64]>;
+def : Proc<"oland",      SI_Itin, [Feature64BitPtr, FeatureFP64]>;
index b43f91722e2f0b2085dc551b97d03500a85972f8..02b73096ce3e2c23f876f36e15a47114eb8654dc 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=r600 -mcpu=SI | FileCheck %s
+; RUN: llc < %s -march=r600 -mcpu=verde | FileCheck %s
 
 ; XXX: Enable once SI supports buffer stores
 ; XFAIL: *
index bf0cdaa2fa3a1898f10fa731fa82a5df0384a0ae..e45722c3fa679956cb062e998c8d1e2399dd6100 100644 (file)
@@ -1,4 +1,4 @@
-;RUN: llc < %s -march=r600 -mcpu=SI | FileCheck %s
+;RUN: llc < %s -march=r600 -mcpu=verde | FileCheck %s
 
 ;CHECK: S_MOV_B32
 ;CHECK-NEXT: V_INTERP_MOV_F32
index c724395b98c22c1086ec031e9cf63ccad971bab0..5bdb246a37f26b9a8c87b8727d9062e4fdf3fc80 100644 (file)
@@ -1,4 +1,4 @@
-;RUN: llc < %s -march=r600 -mcpu=SI | FileCheck %s
+;RUN: llc < %s -march=r600 -mcpu=verde | FileCheck %s
 
 ;CHECK: IMAGE_SAMPLE
 ;CHECK: IMAGE_SAMPLE
index 423adb9da9008ebda81535c9ec2d9b73a80dbd6b..fb698da62719ec5fa582ceca333234695b87ea86 100644 (file)
@@ -1,4 +1,4 @@
-;RUN: llc < %s -march=r600 -mcpu=SI | FileCheck %s
+;RUN: llc < %s -march=r600 -mcpu=verde | FileCheck %s
 
 ;CHECK: V_LSHLREV_B32_e32 VGPR0, 1, VGPR0
 
index 551eac1d76bf9cbc9b05ac768e17f5f56629463d..e0ed3ac078660641d17006989f093ebef096b171 100644 (file)
@@ -1,4 +1,4 @@
-;RUN: llc < %s -march=r600 -mcpu=SI | FileCheck %s
+;RUN: llc < %s -march=r600 -mcpu=verde | FileCheck %s
 
 ;CHECK: V_LSHRREV_B32_e32 VGPR0, 1, VGPR0
 
index 28744e00c3cf36cbb30a3fe9f56fcd30904c0c46..bc17a597873ee387ac15775a5b51b783c4f00304 100644 (file)
@@ -1,4 +1,4 @@
-;RUN: llc < %s -march=r600 -mcpu=SI | FileCheck %s
+;RUN: llc < %s -march=r600 -mcpu=verde | FileCheck %s
 
 ;CHECK: V_MOV_B32_e32 VGPR1, -1431655765
 ;CHECK-NEXT: V_MUL_HI_U32 VGPR0, VGPR0, VGPR1, 0, 0, 0, 0, 0
index 5ab4b87d570cf87bee8a2856732ca318e7d50b5e..4622203ffdbc684f320ea4b0fcf8981e3fd57a1e 100644 (file)
@@ -1,4 +1,4 @@
-;RUN: llc < %s -march=r600 -mcpu=SI | FileCheck %s
+;RUN: llc < %s -march=r600 -mcpu=verde | FileCheck %s
 
 ;CHECK: V_CMP_O_F32_e64 SGPR0_SGPR1, VGPR0, VGPR0, 0, 0, 0, 0
 
index 320835576d41836c0367f42bac5312643d36550d..0bf5801b1c33da3b5010cd18aa4cfa5ac28e5877 100644 (file)
@@ -1,4 +1,4 @@
-;RUN: llc < %s -march=r600 -mcpu=SI | FileCheck %s
+;RUN: llc < %s -march=r600 -mcpu=verde | FileCheck %s
 
 ;CHECK: V_CMP_U_F32_e64 SGPR0_SGPR1, VGPR0, VGPR0, 0, 0, 0, 0