diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/nds32/builtin-setgie-en.c')
-rw-r--r-- | gcc/testsuite/gcc.target/nds32/builtin-setgie-en.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/nds32/builtin-setgie-en.c b/gcc/testsuite/gcc.target/nds32/builtin-setgie-en.c new file mode 100644 index 00000000000..892887019c9 --- /dev/null +++ b/gcc/testsuite/gcc.target/nds32/builtin-setgie-en.c @@ -0,0 +1,11 @@ +/* Verify that we generate setgie.e instruction with builtin function. */ + +/* { dg-do compile } */ +/* { dg-options "-O0" } */ +/* { dg-final { scan-assembler "\\tsetgie.e" } } */ + +void +test (void) +{ + __builtin_nds32_setgie_en (); +} |