1 | // RUN: %clang_cc1 -triple mips-linux-gnu -emit-llvm -o - %s | FileCheck %s |
---|---|
2 | |
3 | void __attribute__((micromips)) foo (void) {} |
4 | |
5 | // CHECK: define void @foo() [[MICROMIPS:#[0-9]+]] |
6 | |
7 | void __attribute__((nomicromips)) nofoo (void) {} |
8 | |
9 | // CHECK: define void @nofoo() [[NOMICROMIPS:#[0-9]+]] |
10 | |
11 | // CHECK: attributes [[MICROMIPS]] = { noinline nounwind {{.*}} "micromips" {{.*}} } |
12 | // CHECK: attributes [[NOMICROMIPS]] = { noinline nounwind {{.*}} "nomicromips" {{.*}} } |
13 |