代码搜索结果
找到约 242 项符合
BLE 的代码
attr-isr-nosave_low_regs.c
/* { dg-do compile { target { { sh-*-* sh[1234ble]*-*-* } && nonpic } } } */
/* { dg-options "-O" } */
extern void bar ();
void foo ()
{
}
#pragma interrupt
void ( __attribute__ ((nosave_low_regs))
pragma-isr-trap_exit.c
/* { dg-do compile { target sh-*-* sh[1234ble]*-*-* } } */
/* { dg-options "-O" } */
/* This test case will check whether trapa is generated only for isr. */
#pragma interrupt
void isr() __attribute_
attr-isr-nosave_low_regs.c
/* { dg-do compile { target sh-*-* sh[1234ble]*-*-*} } */
/* { dg-options "-O" } */
extern void bar ();
void foo ()
{
}
#pragma interrupt
void ( __attribute__ ((nosave_low_regs)) isr) ()
{
bar ()
pragma-isr-trapa.c
/* { dg-do compile { target { { sh-*-* sh[1234ble]*-*-* } && nonpic } } } */
/* { dg-options "-O" } */
extern void foo ();
#pragma trapa
void
isr()
{
foo ();
}
/* { dg-final { scan-assembler-times
pragma-isr2.c
/* { dg-do compile { target h8300-*-* sh-*-* sh[1234ble]*-*-* } } */
/* { dg-options "-O" } */
/* This test case will check whether rte is generated only for isr. */
#pragma interrupt
void isr()
{
}
bcc.s
.text
foo:
beq foo
bne foo
bgt foo
bge foo
ble foo
blt foo
bhi foo
bcc foo
bls foo
bcs foo
bvc foo
bvs foo
bnc foo
bns foo
bra foo
bcc.s
.text
foo:
beq foo
bne foo
bgt foo
bge foo
ble foo
blt foo
bhi foo
bcc foo
bls foo
bcs foo
bvc foo
bvs foo
bnc foo
bns foo
bra foo
bcc.s
.text
foo:
beq foo
bne foo
bgt foo
bge foo
ble foo
blt foo
bhi foo
bcc foo
bls foo
bcs foo
bvc foo
bvs foo
bnc foo
bns foo
bra foo
bcc.s
.text
foo:
beq foo
bne foo
bgt foo
bge foo
ble foo
blt foo
bhi foo
bcc foo
bls foo
bcs foo
bvc foo
bvs foo
bnc foo
bns foo
bra foo
attr-isr.c
/* { dg-do compile { target sh-*-* sh[1234ble]*-*-*} } */
/* { dg-options "-O" } */
extern void foo ();
void
(__attribute ((interrupt_handler)) isr)()
{
foo ();
}
/* { dg-final { scan-assembler-ti