* ubsan.c (ubsan_expand_null_ifn): Use _v1 suffixed type mismatch
[official-gcc.git] / gcc / testsuite / gcc.target / s390 / target-attribute / tattr-15.c
blobdd0c978936b8c0bc32039d136e74dee4b878ae74
1 /* Functional tests for the "target" attribute and pragma. */
3 /* { dg-do compile } */
4 /* { dg-require-effective-target target_attribute } */
5 /* { dg-options "-mno-packed-stack" } */
7 extern void foo(void);
9 #pragma GCC target("packed-stack")
10 int p1(void)
12 foo();
13 return 1;
15 #pragma GCC reset_options
17 #pragma GCC target("no-packed-stack")
18 int p0(void)
20 foo();
21 return 2;
23 int p0b(void)
25 foo();
26 return 2;
28 #pragma GCC reset_options
30 __attribute__ ((target("packed-stack")))
31 int a1(void)
33 foo();
34 return 4;
37 __attribute__ ((target("packed-stack")))
38 int a1b(void)
40 foo();
41 return 4;
44 __attribute__ ((target("packed-stack")))
45 int a1c(void)
47 foo();
48 return 4;
51 __attribute__ ((target("packed-stack")))
52 int a1d(void)
54 foo();
55 return 4;
58 __attribute__ ((target("no-packed-stack")))
59 int a0(void)
61 foo();
62 return 8;
65 __attribute__ ((target("no-packed-stack")))
66 int a0b(void)
68 foo();
69 return 8;
72 __attribute__ ((target("no-packed-stack")))
73 int a0c(void)
75 foo();
76 return 8;
79 __attribute__ ((target("no-packed-stack")))
80 int a0d(void)
82 foo();
83 return 8;
86 __attribute__ ((target("no-packed-stack")))
87 int a0e(void)
89 foo();
90 return 8;
93 __attribute__ ((target("no-packed-stack")))
94 int a0f(void)
96 foo();
97 return 8;
100 __attribute__ ((target("no-packed-stack")))
101 int a0g(void)
103 foo();
104 return 8;
107 __attribute__ ((target("no-packed-stack")))
108 int a0h(void)
110 foo();
111 return 8;
114 /* { dg-final { scan-assembler-times "\t.cfi_offset 15, -40" 10 { target { lp64 } } } } */
115 /* { dg-final { scan-assembler-times "\t.cfi_offset 15, -8" 5 { target { lp64 } } } } */
116 /* { dg-final { scan-assembler-times "\t.cfi_offset 15, -36" 10 { target { ! lp64 } } } } */
117 /* { dg-final { scan-assembler-times "\t.cfi_offset 15, -4" 5 { target { ! lp64 } } } } */