diff options
| author | Yong He <yhe@nvidia.com> | 2020-06-04 14:04:54 -0700 |
|---|---|---|
| committer | Yong He <yhe@nvidia.com> | 2020-06-04 14:04:54 -0700 |
| commit | 5e52b339f3e021cf8b68be56d1f3ff1d548a038f (patch) | |
| tree | 2d5d344f7821cac708c5b2869e283be89a0fed3d | |
| parent | 4e2f2771eb2f8991014d957848a6a25aa49c0aaf (diff) | |
Change loop-attrib test case to CROSS_COMPILE per review comments
| -rw-r--r-- | tests/cross-compile/loop-attribs.slang | 2 | ||||
| -rw-r--r-- | tests/cross-compile/loop-attribs.slang.expected | 61 |
2 files changed, 1 insertions, 62 deletions
diff --git a/tests/cross-compile/loop-attribs.slang b/tests/cross-compile/loop-attribs.slang index ddedb67df..4336698c0 100644 --- a/tests/cross-compile/loop-attribs.slang +++ b/tests/cross-compile/loop-attribs.slang @@ -1,7 +1,7 @@ // loop-attribs.slang // Test that loop attributes are correctly emitted to the resulting HLSL. -//TEST:SIMPLE:-target hlsl -entry main -stage fragment -profile sm_6_0 +//TEST:CROSS_COMPILE:-target dxil-assembly -entry main -stage fragment -profile sm_6_0 float4 main() : SV_Target { diff --git a/tests/cross-compile/loop-attribs.slang.expected b/tests/cross-compile/loop-attribs.slang.expected deleted file mode 100644 index 0ecf0194f..000000000 --- a/tests/cross-compile/loop-attribs.slang.expected +++ /dev/null @@ -1,61 +0,0 @@ -result code = 0 -standard error = { -} -standard output = { -#pragma pack_matrix(column_major) - -#line 6 "tests/cross-compile/loop-attribs.slang" -vector<float,4> main() : SV_TARGET -{ - int i_0; - float sum_0; - int j_0; - float sum_1; - i_0 = int(0); - sum_0 = 0.00000000000000000000; - [loop] - for(;;) - { - -#line 11 - if(i_0 < int(100)) - { - } - else - { - break; - } - float _S1 = sum_0 + (float) i_0; - -#line 11 - int _S2 = i_0 + (int) int(1); - i_0 = _S2; - sum_0 = _S1; - } - j_0 = int(0); - sum_1 = sum_0; - [unroll] - for(;;) - { - -#line 15 - if(j_0 < int(100)) - { - } - else - { - break; - } - float _S3 = sum_1 + (float) j_0; - -#line 15 - int _S4 = j_0 + (int) int(1); - j_0 = _S4; - sum_1 = _S3; - } - -#line 18 - return vector<float,4>(sum_1, (float) int(0), (float) int(0), (float) int(0)); -} - -} |
