Moved dag-combine-select-undef.ll into amdgpu. NFC.

Tests really needs target arch to be specified.

llvm-svn: 347115
diff --git a/llvm/test/CodeGen/AMDGPU/select-undef.ll b/llvm/test/CodeGen/AMDGPU/select-undef.ll
index 5dc6f64..6597d67 100644
--- a/llvm/test/CodeGen/AMDGPU/select-undef.ll
+++ b/llvm/test/CodeGen/AMDGPU/select-undef.ll
@@ -22,4 +22,24 @@
   ret float %sel
 }
 
+; GCN-LABEL: {{^}}select_undef_n1:
+; GCN: v_mov_b32_e32 [[RES:v[0-9]+]], 1.0
+; GCN: store_dword {{[^,]+}}, [[RES]]
+define void @select_undef_n1(float addrspace(1)* %a, i32 %c) {
+  %cc = icmp eq i32 %c, 0
+  %sel = select i1 %cc, float 1.000000e+00, float undef
+  store float %sel, float addrspace(1)* %a
+  ret void
+}
+
+; GCN-LABEL: {{^}}select_undef_n2:
+; GCN: v_mov_b32_e32 [[RES:v[0-9]+]], 1.0
+; GCN: store_dword {{[^,]+}}, [[RES]]
+define void @select_undef_n2(float addrspace(1)* %a, i32 %c) {
+  %cc = icmp eq i32 %c, 0
+  %sel = select i1 %cc, float undef, float 1.000000e+00
+  store float %sel, float addrspace(1)* %a
+  ret void
+}
+
 declare float @llvm.amdgcn.rcp.f32(float)
diff --git a/llvm/test/CodeGen/Generic/dag-combine-select-undef.ll b/llvm/test/CodeGen/Generic/dag-combine-select-undef.ll
deleted file mode 100644
index 2ed636b..0000000
--- a/llvm/test/CodeGen/Generic/dag-combine-select-undef.ll
+++ /dev/null
@@ -1,19 +0,0 @@
-; RUN: llc < %s | FileCheck %s
-
-define void @select_undef_n1(float addrspace(1)* %a, i32 %c) {
-; CHECK-LABEL: select_undef_n1:
-; CHECK:    movl $1065353216, (%rdi)
-  %cc = icmp eq i32 %c, 0
-  %sel = select i1 %cc, float 1.000000e+00, float undef
-  store float %sel, float addrspace(1)* %a
-  ret void
-}
-
-define void @select_undef_n2(float addrspace(1)* %a, i32 %c) {
-; CHECK-LABEL: select_undef_n2:
-; CHECK:    movl $1065353216, (%rdi)
-  %cc = icmp eq i32 %c, 0
-  %sel = select i1 %cc, float undef, float 1.000000e+00
-  store float %sel, float addrspace(1)* %a
-  ret void
-}