AMDGPU/SI: Emit constant arrays in the .text section
[oota-llvm.git] / lib / Target / AMDGPU / SIInstructions.td
index 2cee993d751cdcc1b77e80e49000d4a353a50e83..dcc74f77c1466d21ac53f5bbf6f3dca050cfc0a6 100644 (file)
@@ -2039,8 +2039,8 @@ let Defs = [SCC] in {
 
 def SI_CONSTDATA_PTR : InstSI <
   (outs SReg_64:$dst),
-  (ins),
-  "", [(set SReg_64:$dst, (i64 SIconstdata_ptr))]
+  (ins const_ga:$ptr),
+  "", [(set SReg_64:$dst, (i64 (SIconstdata_ptr (tglobaladdr:$ptr))))]
 > {
   let SALU = 1;
 }