diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/nios2/nios2-wrctl-zero.c')
-rw-r--r-- | gcc/testsuite/gcc.target/nios2/nios2-wrctl-zero.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/nios2/nios2-wrctl-zero.c b/gcc/testsuite/gcc.target/nios2/nios2-wrctl-zero.c new file mode 100644 index 00000000000..93f01b07708 --- /dev/null +++ b/gcc/testsuite/gcc.target/nios2/nios2-wrctl-zero.c @@ -0,0 +1,7 @@ +/* { dg-do compile } */ +/* { dg-options "-O1" } */ +/* { dg-final { scan-assembler "wrctl\\tctl6, zero" } } */ + +void foo(void){ + __builtin_wrctl(6,0); +} |