Reed Kotler | ad4b8b4 | 2013-03-13 20:40:30 +0000 | [diff] [blame] | 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 | |
Bill Wendling | aa778f1 | 2013-03-13 22:44:19 +0000 | [diff] [blame] | 14 | // CHECK: attributes [[MIPS16]] = { nounwind {{.*}} "mips16" {{.*}} } |
Reed Kotler | ad4b8b4 | 2013-03-13 20:40:30 +0000 | [diff] [blame] | 15 | |
Bill Wendling | aa778f1 | 2013-03-13 22:44:19 +0000 | [diff] [blame] | 16 | // CHECK: attributes [[NOMIPS16]] = { nounwind {{.*}} "nomips16" {{.*}} } |
Reed Kotler | ad4b8b4 | 2013-03-13 20:40:30 +0000 | [diff] [blame] | 17 | |