blob: 18799be6f0d7a76a672bcd26def9735acf3deb6d [file] [log] [blame]
Reed Kotlerad4b8b42013-03-13 20:40:30 +00001// RUN: %clang_cc1 -triple mipsel-linux-gnu -emit-llvm -o - %s | FileCheck %s
2void __attribute__((mips16)) foo (void) {
3
4}
5
6// CHECK: define void @foo() [[MIPS16:#[0-9]+]]
7
8void __attribute__((nomips16)) nofoo (void) {
9
10}
11
12// CHECK: define void @nofoo() [[NOMIPS16:#[0-9]+]]
13
Bill Wendlingaa778f12013-03-13 22:44:19 +000014// CHECK: attributes [[MIPS16]] = { nounwind {{.*}} "mips16" {{.*}} }
Reed Kotlerad4b8b42013-03-13 20:40:30 +000015
Bill Wendlingaa778f12013-03-13 22:44:19 +000016// CHECK: attributes [[NOMIPS16]] = { nounwind {{.*}} "nomips16" {{.*}} }
Reed Kotlerad4b8b42013-03-13 20:40:30 +000017