Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.c-torture/execute/20030222-1.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
1 /* Verify that we get the low part of the long long as an int. We | 1 /* Verify that we get the low part of the long long as an int. We |
2 used to get it wrong on big-endian machines, if register allocation | 2 used to get it wrong on big-endian machines, if register allocation |
3 succeeded at all. We use volatile to make sure the long long is | 3 succeeded at all. We use volatile to make sure the long long is |
4 actually truncated to int, in case a single register is wide enough | 4 actually truncated to int, in case a single register is wide enough |
5 for a long long. */ | 5 for a long long. */ |
6 /* { dg-skip-if "asm would require extra shift-left-4-byte" { spu-*-* } } */ | |
7 /* { dg-skip-if "asm requires register allocation" { nvptx-*-* } } */ | 6 /* { dg-skip-if "asm requires register allocation" { nvptx-*-* } } */ |
8 #include <limits.h> | 7 #include <limits.h> |
9 | 8 |
10 void | 9 void |
11 ll_to_int (long long x, volatile int *p) | 10 ll_to_int (long long x, volatile int *p) |