Skip to content

hsa_code/code_recursive_kernel_function test case broken #6

@pjaaskel

Description

@pjaaskel

The recursion result is never saved, thus this test cannot pass.

This fixes it:

--- a/src/kernels/recursive_func.hsail
+++ b/src/kernels/recursive_func.hsail
@@ -65,6 +65,7 @@ prog function &recur_add_fn(arg_u32 %out)(arg_u32 %in0, arg_u32 %in1) {
         st_arg_u32 $s0, [%arg0];
         st_arg_u32 $s1, [%arg1];
         call &recur_add_fn (%outarg)(%arg0,%arg1);
+        ld_arg_align(4)_u32 $s0, [%outarg];
     } // store the value of s0 to out, then return

 @return:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions