brintos

brintos / llvm-project-archived public Read only

0
0
Text · 450 B · a256bf7 Raw
11 lines · c
1// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py2// RUN: %clang_cc1 -triple riscv64 -target-feature +zbkb -S -verify %s -o -3 4#include <stdint.h>5 6uint32_t zip_unzip(uint32_t rs1)7{8  (void)__builtin_riscv_zip_32(rs1); // expected-error {{'__builtin_riscv_zip_32' needs target feature zbkb,32bit}}9  return __builtin_riscv_unzip_32(rs1); // expected-error {{'__builtin_riscv_unzip_32' needs target feature zbkb,32bit}}10}11