summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/micromips-attr.c
blob: 96ba774afc0ff865d9b26ef76360e0d4c327e11c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -triple mips-linux-gnu -emit-llvm  -o  - %s | FileCheck %s

void __attribute__((micromips)) foo (void) {}

// CHECK: define void @foo() [[MICROMIPS:#[0-9]+]]

void __attribute__((nomicromips)) nofoo (void) {}

// CHECK: define void @nofoo() [[NOMICROMIPS:#[0-9]+]]

// CHECK: attributes [[MICROMIPS]] = { noinline nounwind {{.*}} "micromips" {{.*}} }
// CHECK: attributes [[NOMICROMIPS]]  = { noinline nounwind {{.*}} "nomicromips" {{.*}} }