File tree Expand file tree Collapse file tree 5 files changed +17
-15
lines changed Expand file tree Collapse file tree 5 files changed +17
-15
lines changed Original file line number Diff line number Diff line change 1- // RUN: %clang_cc1 -std=c++11 -ast-dump %s | FileCheck %s --strict-whitespace
1+ // RUN: %clang_cc1 -std=c++11 -triple aarch64-arm-none-eabi -target-feature -fp8 -ast-dump %s | \
2+ // RUN: FileCheck %s --strict-whitespace
3+
4+ // REQUIRES: aarch64-registered-target || arm-registered-target
25
36/* Various contexts where type __fpm8 can appear. */
47
Original file line number Diff line number Diff line change 11// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 4
2- // RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
2+ // RUN: %clang_cc1 -emit-llvm -triple aarch64-arm-none-eabi -target-feature -fp8 -o - %s | FileCheck %s
3+
4+ // REQUIRES: aarch64-registered-target
35
46// CHECK-LABEL: define dso_local i8 @func1n(
57// CHECK-SAME: i8 noundef [[FPM8:%.*]]) #[[ATTR0:[0-9]+]] {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- // RUN: %clang_cc1 -fsyntax-only -verify -triple aarch64 -target-feature +fp8 %s
1+ // RUN: %clang_cc1 -fsyntax-only -verify -triple aarch64-arm-none-eabi -target-feature -fp8 %s
2+
3+ // REQUIRES: aarch64-registered-target
24
35__fpm8 test_cast_from_float (unsigned in ) {
46 return (__fpm8 )in ; // expected-error {{cannot cast 'unsigned int' to '__fpm8'; types are not compatible}}
Original file line number Diff line number Diff line change 1- // RUN: %clang_cc1 -fsyntax-only -verify=scalar,neon -std=c++11 \
2- // RUN: -triple aarch64 -target-cpu cortex-a75 \
3- // RUN: -target-feature +fp8 -Wno-unused %s
1+ // RUN: %clang_cc1 -fsyntax-only -verify=scalar -triple aarch64-arm-none-eabi -target-feature -fp8 %s
42
53// REQUIRES: aarch64-registered-target
4+ __fpm8 test_static_cast_from_char (char in) {
5+ return static_cast <__fpm8>(in); // scalar-error {{static_cast from 'char' to '__fpm8' is not allowed}}
6+ }
67
8+ char test_static_cast_to_char (__fpm8 in) {
9+ return static_cast <char >(in); // scalar-error {{static_cast from '__fpm8' to 'char' is not allowed}}
10+ }
711void test (bool b) {
812 __fpm8 fpm8;
913
You can’t perform that action at this time.
0 commit comments