brintos

brintos / llvm-project-archived public Read only

0
0
Text · 859 B · 358f9d7 Raw
37 lines · c
1// REQUIRES: aarch64-registered-target2// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve -S -O1 -Werror -Wall -o - %s | FileCheck %s3 4#include <arm_sve.h>5 6svbool_t test_svdupq_n_b8_const()7{8  // CHECK-LABEL: test_svdupq_n_b8_const9  // CHECK: ptrue p0.h10  // CHECK-NEXT: ret11  return svdupq_n_b8(1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0);12}13 14svbool_t test_svdupq_n_b16_const()15{16  // CHECK-LABEL: test_svdupq_n_b16_const17  // CHECK: ptrue p0.h18  // CHECK-NEXT: ret19  return svdupq_n_b16(1, 1, 1, 1, 1, 1, 1, 1);20}21 22svbool_t test_svdupq_n_b32_const()23{24  // CHECK-LABEL: test_svdupq_n_b32_const25  // CHECK: ptrue p0.s26  // CHECK-NEXT: ret27  return svdupq_n_b32(1, 1, 1, 1);28}29 30svbool_t test_svdupq_n_b64_const()31{32  // CHECK-LABEL: test_svdupq_n_b64_const33  // CHECK: ptrue p0.d34  // CHECK-NEXT: ret35  return svdupq_n_b64(1, 1);36}37