Browse Source

[NFC] Delete duplicated tests (#5155)

These tests are just copies of HLSLFileCheck/shader_targets/library/lib_no_alias.hlsl testing the exact same output, so they provide no unique value.
Chris B 2 years ago
parent
commit
39e13951cc

+ 0 - 16
tools/clang/test/CodeGenHLSL/lib_no_alias.hlsl

@@ -1,16 +0,0 @@
-// RUN: %dxc -T lib_6_3 -auto-binding-space 11 -default-linkage external %s | FileCheck %s
-
-// Make sure out param has no-alias.
-// CHECK: float @"\01?test{{[@$?.A-Za-z0-9_]+}}"(float %a, %struct.T* noalias nocapture %t, %class.matrix.float.2.2* noalias nocapture dereferenceable(16) %m, float %b)
-
-struct T {
-  float a;
-  int b;
-};
-
-float test(float a, out T t, out float2x2 m, float b) {
-  t.a = 1;
-  t.b = 6;
-  m = 3;
-  return a + t.a - t.b - b;
-}

+ 0 - 16
tools/clang/test/DXILValidation/lib_no_alias.hlsl

@@ -1,16 +0,0 @@
-// RUN: %dxc -T lib_6_3 -auto-binding-space 11 -default-linkage external %s | FileCheck %s
-
-// Make sure out param has no-alias.
-// CHECK: float @"\01?test{{[@$?.A-Za-z0-9_]+}}"(float %a, %struct.T* noalias nocapture %t, %class.matrix.float.2.2* noalias nocapture dereferenceable(16) %m, float %b)
-
-struct T {
-  float a;
-  int b;
-};
-
-float test(float a, out T t, out float2x2 m, float b) {
-  t.a = 1;
-  t.b = 6;
-  m = 3;
-  return a + t.a - t.b - b;
-}

+ 0 - 5
tools/clang/unittests/HLSL/CompilerTest.cpp

@@ -226,7 +226,6 @@ public:
   TEST_METHOD(CodeGenLibCsEntry3)
   TEST_METHOD(CodeGenLibEntries)
   TEST_METHOD(CodeGenLibEntries2)
-  TEST_METHOD(CodeGenLibNoAlias)
   TEST_METHOD(CodeGenLibResource)
   TEST_METHOD(CodeGenLibUnusedFunc)
 
@@ -3785,10 +3784,6 @@ TEST_F(CompilerTest, CodeGenLibEntries2) {
   CodeGenTestCheck(L"lib_entries2.hlsl");
 }
 
-TEST_F(CompilerTest, CodeGenLibNoAlias) {
-  CodeGenTestCheck(L"lib_no_alias.hlsl");
-}
-
 TEST_F(CompilerTest, CodeGenLibResource) {
   CodeGenTestCheck(L"lib_resource.hlsl");
 }