xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/mips16-attr.c (revision 433d6423c39e34ec4b79c950597bb2d236f886be)
1 // RUN: %clang_cc1 -triple mipsel-linux-gnu -emit-llvm  -o  - %s | FileCheck %s
2 void __attribute__((mips16)) foo (void) {
3 
4 }
5 
6 // CHECK: define void @foo() [[MIPS16:#[0-9]+]]
7 
8 void __attribute__((nomips16)) nofoo (void) {
9 
10 }
11 
12 // CHECK: define void @nofoo() [[NOMIPS16:#[0-9]+]]
13 
14 // CHECK: attributes [[MIPS16]] = { nounwind {{.*}} "mips16" {{.*}} }
15 
16 // CHECK: attributes [[NOMIPS16]]  = { nounwind {{.*}} "nomips16" {{.*}} }
17 
18