Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[AArch64][SVE] can fold whilele comparison with MAX to ptrue #137614

Copy link
Copy link
Closed
@k-arrows

Description

@k-arrows
Issue body actions

Here is the test case from gcc testsuite(gcc.target/aarch64/sve/acle/general/whilele_12.c).
https://godbolt.org/z/K6KndErba

#include <arm_sve.h>
#include <limits.h>

svbool_t
f1 (volatile int32_t *ptr)
{
  return svwhilele_b8_s32 (*ptr, INT32_MAX);
}

svbool_t
f2 (volatile uint32_t *ptr)
{
  return svwhilele_b16_u32 (*ptr, UINT32_MAX);
}

svbool_t
f3 (volatile int64_t *ptr)
{
  return svwhilele_b32_s64 (*ptr, INT64_MAX);
}

svbool_t
f4 (volatile uint64_t *ptr)
{
  return svwhilele_b64_u64 (*ptr, UINT64_MAX);
}

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.