<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/96792>96792</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [ARM]Run fail when set target to armebv7-unknown-linux
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          hstk30-hw
      </td>
    </tr>
</table>

<pre>
    https://godbolt.org/z/893z1PG1E

Example code like:

```
#include <stdio.h>

#define DBL_EPSILON 2.2204460492503131e-16

_Bool func_IS_DOUBLE_EQUAL_0(double value) {
  return ((value) <= DBL_EPSILON) &&((value) >= -DBL_EPSILON);
}

int main () {
    double y = 0.2f;

 if (func_IS_DOUBLE_EQUAL_0(y)) {
        printf("0.2 equal to zeor\n");
    }

    return 0;
}
```

The `target` impact the paramenter to `func_IS_DOUBLE_EQUAL_0`.

when `target` is `armebv7` , the paramenter passes and accepts like

```
...
 vmov    r1, r0, d0
    bl func_IS_DOUBLE_EQUAL_0

func_IS_DOUBLE_EQUAL_0: 
    ...
    vmov d0, r1, r0

```

and when `target` is `armebv7-unknown-linux` ,

```
    vmov    r0, r1, d0
    bl func_IS_DOUBLE_EQUAL_0

func_IS_DOUBLE_EQUAL_0: 
    ...
    vmov d0, r1, r0
```

leads to bad result.

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzEVE2PozgQ_TXFxQoyBTHhwCHpJKuRendmZ3bOkcFF8LaBLDbJdP_6lQFN0lFn9rgRqghT9d6rD5e0Vh9bohyWG1huAzm4uuvz2rqXmC_qS1B06jWvnTtZiNeAe8D9sVNFZ1zY9UfA_RvgfpXFb9GX36Id8C3w9WR3P2RzMsTKThEz-oU8wM13EHx-pleMdVuaQRGD-Mk6pbuwhvgdJGCsqNItse3m-bD78u3T8-c_GIaIPEkETzJc8jiKI1pE4jbusOk6w6qhLQ-fvh22n79vnneH3Z_f188HDrhS3VAYYmdpBgLMGKSbKY6xntzQtwxwBbi6OsRPEG9vRYynKMbnznXnXRfvfSGeGSDd3grVrWON1DPhOyWMzTJfmQfkIVZXlMlHVz7uYZqvnvge1P9OvW5dNVIiD5HRP4M0zHXsjboelk8tIN6K9jF3wv3RXCv-QXJ3rR7tXzUxENzJ_kgOBGe6OcnSMVcTO8leNtQ66r0MEPxBUoKHt5CXmto7TOvfZd9QcU79AeDTPcNJWkuWyVYxWZZ0cnYa18ezGoYzLTs33XnMPfLAPfdW8WtNiodjd4P-wCNesyvQlZKxiVWNZD-Jf3GzRuvT-4_6LIb2pe0u7cLodvgxV-sXwD-l-ALcqPk_C_BR6oaksn6QCqlYT3YwbsYKVB6rLM5kQHmURlkSrVKxCuo8IhEtlaxWSkbEy1W5LOI0FYlIKVVRVgU6R44JFygiEWUoQiShiIuUFxUWRUKQcGqkNqEx58bvykBbO1CeiTTDwMiCjB23LmJLFzZ-9PdsuQ363McsiuFoIeFGW2evKE47M67r9dffYbn9OrSsktpMvbXk2NRcn-6HbQ2G3twvdO3qoQjLrgHce6L5b3Hqu7-pdID7UZ4F3E_yzzn-GwAA___hZLbL">