mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-23 21:45:46 -04:00

* Accept as an argument constants in range 0..63 (aligned with TI headers and linker scripts provided with TI GCC toolchain). * Emit function attribute 'interrupt'='xx' instead of aliases (used in the backend to create a section for particular interrupt vector). * Add more diagnostics. Patch by Kristina Bessonova! Differential Revision: https://reviews.llvm.org/D56663 llvm-svn: 351344
11 lines
296 B
C
11 lines
296 B
C
// RUN: %clang_cc1 -triple msp430-unknown-unknown -emit-llvm < %s| FileCheck %s
|
|
|
|
__attribute__((interrupt(1))) void foo(void) {}
|
|
// CHECK: @llvm.used
|
|
// CHECK-SAME: @foo
|
|
|
|
// CHECK: define msp430_intrcc void @foo() #0
|
|
// CHECK: attributes #0
|
|
// CHECK-SAME: noinline
|
|
// CHECK-SAME: "interrupt"="1"
|