brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 8ae595c Raw
27 lines · c
1// REQUIRES: powerpc-registered-target2// RUN: %clang_cc1 -triple=powerpc-ibm-aix-xcoff -mxcoff-roptr -fdata-sections \3// RUN:     -S <%s | FileCheck %s --check-prefix=CHECK324// RUN: %clang_cc1 -triple=powerpc64-ibm-aix-xcoff -mxcoff-roptr -fdata-sections \5// RUN:     -S <%s | FileCheck %s --check-prefix=CHECK646// RUN: not %clang_cc1 -triple=powerpc-ibm-aix-xcoff -mxcoff-roptr \7// RUN:     -S <%s 2>&1 | FileCheck %s --check-prefix=DATA_SECTION_ERR8// RUN: not %clang_cc1 -triple=powerpc64-ibm-aix-xcoff -mxcoff-roptr \9// RUN:     -S <%s 2>&1 | FileCheck %s --check-prefix=DATA_SECTION_ERR10// RUN: not %clang_cc1 -triple=powerpc64le-unknown-linux-gnu -mxcoff-roptr \11// RUN:     %s 2>&1 | FileCheck %s --check-prefix=TARGET_ROPTR_ERR12 13char c1 = 10;14char* const c1_ptr = &c1;15// CHECK32:         .csect c1_ptr[RO],216// CHECK32-NEXT:	.globl	c1_ptr[RO]17// CHECK32-NEXT:	.align	218// CHECK32-NEXT:	.vbyte	4, c1[RW]19 20// CHECK64:         .csect c1_ptr[RO],321// CHECK64-NEXT:	.globl	c1_ptr[RO]22// CHECK64-NEXT:	.align	323// CHECK64-NEXT:	.vbyte	8, c1[RW]24 25// DATA_SECTION_ERR: error: -mxcoff-roptr is supported only with -fdata-sections26// TARGET_ROPTR_ERR: error: unsupported option '-mxcoff-roptr' for target 'powerpc64le-unknown-linux-gnu'27