| 1 |
/* { dg-do run } */ |
| 2 |
/* { dg-options {-O0 -mno-soft-stack} } */ |
| 3 |
/* { dg-additional-options -march=sm_30 } */ |
| 4 |
/* { dg-additional-options -mfake-ptx-alloca } */ |
| 5 |
/* { dg-additional-options -save-temps } */ |
| 6 |
|
| 7 |
int |
| 8 |
main(void) |
| 9 |
{ |
| 10 |
return !(__builtin_alloca(100) != __builtin_alloca(10)); |
| 11 |
} |
| 12 |
/* { dg-final { scan-assembler-times {(?n)\tcall\t\(%r[0-9]+\), __GCC_nvptx__PTX_alloca_not_supported, \(%r[0-9]+\);$} 2 } } */ |
| 13 |
|
| 14 |
/* { dg-final { scan-assembler-times {(?n)^\.extern \.func \(\.param\.u64 %value_out\) __GCC_nvptx__PTX_alloca_not_supported \(\.param\.u64 %in_ar0\);$} 1 } } */ |
| 15 |
|
| 16 |
/* { dg-bogus __GCC_nvptx__PTX_alloca_not_supported {unresolved symbol} { target *-*-* } 0 } */ |
| 17 |
|
| 18 |
/* { dg-output {GCC/nvptx: sorry, unimplemented: dynamic stack allocation not supported[\r\n]+} } |
| 19 |
{ dg-shouldfail __GCC_nvptx__PTX_alloca_not_supported } */ |