aboutsummaryrefslogtreecommitdiffstats
path: root/test/regression/builtins-arm.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/regression/builtins-arm.c')
-rw-r--r--test/regression/builtins-arm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/regression/builtins-arm.c b/test/regression/builtins-arm.c
index 5fa867c2..709343ce 100644
--- a/test/regression/builtins-arm.c
+++ b/test/regression/builtins-arm.c
@@ -7,6 +7,7 @@ int main(int argc, char ** argv)
unsigned int x = 0x12345678;
unsigned int y = 0xDEADBEEF;
unsigned long long xx = 0x1234567812345678ULL;
+ unsigned z;
double a = 3.14159;
unsigned short s = 0x1234;
@@ -15,6 +16,8 @@ int main(int argc, char ** argv)
printf("clz(%x) = %d\n", x, __builtin_clz(x));
printf("clzll(%llx) = %d\n", (unsigned long long) x, __builtin_clzll(x));
printf("clzll(%llx) = %d\n", xx, __builtin_clzll(xx));
+ z = __builtin_bswap(x);
+ printf("clzll(%lx) = %d\n", z, __builtin_clzll(z));
printf("fsqrt(%f) = %f\n", a, __builtin_fsqrt(a));
printf ("read_16_rev = %x\n", __builtin_read16_reversed(&s));